Am I using hardware floating? (CodeBench)
Hi,
The toolchain I selected is codebench from buildroot. CPU is ARM s3c2416. I want to know what kind of floating method is used in my system. Does this related to BR?
Thanks in advance.
Signature · 1 line
I can't go back to yesterday - because I was a different person then
Dear Woody Wu,
Quoted 3 lines · Woody Wu
The toolchain I selected is codebench from buildroot. CPU is ARM s3c2416. I want to know what kind of floating method is used in my system. Does this related to BR?
The S3C2416 is an ARM926, and it does not have a floating point unit, so your only solution is to use software floating point on this platform.
Thomas
Signature · 3 lines
Thomas Petazzoni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Quoted 8 lines · Thomas Petazzoni
Dear Woody Wu,
Quoted 3 lines · Woody Wu
The toolchain I selected is codebench from buildroot. CPU is ARM s3c2416. I want to know what kind of floating method is used in my system. Does this related to BR?
Quoted 5 lines
The S3C2416 is an ARM926, and it does not have a floating point unit, so your only solution is to use software floating point on this platform.
Thomas
Okay, understand. For software floating, I know there are two ways, one is to generating an interrupt every time a floating instruction is executed, which is very slow. And, another way is let the compiler to convert all floating calculation to a function call which implemented in a floating library, this method is a little faster than the former. My compiler is CodeBench from BR, does it have this feature and has it already enabled? Thank you very much.
Quoted 4 lines
Signature · 3 lines
Thomas Petazzoni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Signature · 1 line
I can't go back to yesterday - because I was a different person then
Dear Woody Wu,
Quoted 7 lines · Woody Wu
Okay, understand. For software floating, I know there are two ways, one is to generating an interrupt every time a floating instruction is executed, which is very slow. And, another way is let the compiler to convert all floating calculation to a function call which implemented in a floating library, this method is a little faster than the former. My compiler is CodeBench from BR, does it have this feature and has it already enabled? Thank you very much.
Yes, the Sourcery CodeBench toolchain for ARM uses soft-float for its ARMv5 multilib variant, which gets used if you select the arm926 processor type in Buildroot.
Thomas
Signature · 3 lines
Thomas Petazzoni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
? 2013-9-23 PM3:28?"Thomas Petazzoni" <[email protected]
Quoted 14 lines
???
Dear Woody Wu,
Quoted 7 lines · Woody Wu
Okay, understand. For software floating, I know there are two ways, one is to generating an interrupt every time a floating instruction is executed, which is very slow. And, another way is let the compiler to convert all floating calculation to a function call which implemented in a floating library, this method is a little faster than the former. My compiler is CodeBench from BR, does it have this feature and has it already enabled? Thank you very much.
Quoted 4 lines
Yes, the Sourcery CodeBench toolchain for ARM uses soft-float for its ARMv5 multilib variant, which gets used if you select the arm926 processor type in Buildroot.
Many thanks Thomas!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130924/e8be2e0d/attachment.html>