I’d like to know the size of a float in GCC, without having to run the compiler. I know one option is to write a small function and have the compiler print out an assembly listing.
There is limits.h, which contains the minimums and maximums, but is there something similar that tells the size of the different implicit types?
I’m using GCC on Windows 7 x64; the target platform is ARM7 32 bit mode. Language is C.
You can have GCC print out all of the default macros:
Then you get lines like:
Now you can parse this as follows:
To find documentation:
1)
man gcc:2) the actual macros:
http://www.gnu.org/s/hello/manual/libc/Floating-Point-Parameters.html