[mc1322x] linking in math libraries?
Andrew Pullin
pullin at berkeley.edu
Wed Apr 7 16:05:13 EDT 2010
I just got some RedBee hardware and am familiarizing myself with ARM
programming. I've been using the libmc1322x project codebase, just because
all the startup code is already there for the RedBee boards.
I've noticed
that if I #include , and add -lm to the makefile, it makes the executable
really large, about 500K if sqrt() is used. I know it has to include a fair
bit of code for software floating point support, but that seems like a lot.
My only point of reference is for the MSP430, where including software
floats is ~10K of compiled code from msp430libc.
Is there something I am
just overlooking? I know that floating point math will be slow, and I
should learn fixed pointed properly, but I'm still interested to figure
this out.
-Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devl.org/pipermail/mc1322x/attachments/20100407/bf62022f/attachment.htm>
More information about the mc1322x
mailing list