Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
How to avoid reference to fplib functions
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
4115 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
How to avoid reference to fplib functions
Michal Szymanski
over 12 years ago
Note: This was originally posted on 2nd October 2012 at
http://forums.arm.com
Hi,
I'm building objects for armv5 with option -fpu=softvfp. All objects are combined to .a library. It seems that compiler puts to my code helper functions such as __ARM_scalbn and __aeabi_lasr. The problem is, that these functions are not hard-coded into my .a lib, references are needed during linking. For some reasons I would like to avoid such behavior and create "stand-alone" .a library, which can be used without fplib and other helpers. In other words, i would like to build-in these functions into library. Is that possible?
Thanks
MSZ
Michal Szymanski
over 12 years ago
Note: This was originally posted on 2nd October 2012 at
http://forums.arm.com
Do you need fp? If not you could use "--fpu=none"
I need software floating point. But that's tricky, because during linking I don't have access to helpers library. I will give example: library includes function for conversion from float to fixed-point - that's the place where __ARM_scalbn is used. I want to make this function inlined (or something like that) into code. End-user of library should be unaware which functions are hidden under library.
Cancel
Vote up
0
Vote down
Cancel
Peter Harris
over 12 years ago
Note: This was originally posted on 3rd October 2012 at
http://forums.arm.com
If you only need to hide this from your end users you could statically link the fp helper library into the binary you distribute.
Cancel
Vote up
0
Vote down
Cancel
Martin Weidmann
over 12 years ago
Note: This was originally posted on 2nd October 2012 at
http://forums.arm.com
Do you need fp? If not you could use "--fpu=none"
Cancel
Vote up
0
Vote down
Cancel