Jump to content
  • Advertisement
Sign in to follow this  
sto8qc

Removing _fltused from import table

This topic is 4125 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, My compiler (Intel C++ compiler 9.1, MSVC 6.0/2003/2005 compatible) generates object files which imports symbol `_fltused` when floating point constants/functions are used in source code. Is there any way to disable this using compiler parameters? I don't need any functionality from run-time library and therefore I don't need any stuff related to it in my object files. Thank you.

Share this post


Link to post
Share on other sites
Advertisement
Why is it a bad thing?

Also, if you use floating point at all in your program, there is a very good chance you do need support from the runtime because many normal floating point operations (such as float-to-int conversion) are much more complicated than simply using store-float-as-int assembly instructions due to the requirements of the C++ language specification. In MSVC 2002, at least, that operation is actually performed by a very long function that is part of the runtime library.

Share this post


Link to post
Share on other sites
Quote:
Original post by Extrarius
Why is it a bad thing?

Also, if you use floating point at all in your program, there is a very good chance you do need support from the runtime because many normal floating point operations (such as float-to-int conversion) are much more complicated than simply using store-float-as-int assembly instructions due to the requirements of the C++ language specification. In MSVC 2002, at least, that operation is actually performed by a very long function that is part of the runtime library.

I have just tried to convert floating point number to integer and linker didn't show any errors about unresolved externals. Code was not removed by optimizer - I can see it in actual assembly output (fistp FPU instruction is used) so I'm sure I can live without run-time libraries.

I think you are talking about emulating floating point functionality (long functions to convert float to integer, etc.).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!