Work around too long C++ symbol names

Fco Javier jabarca@ya.com
Wed Feb 25 11:18:00 GMT 2004


Hello,

I saw the "How to work around too long C++ symbol names (-fsquangle)" 
FAQ of G++ and i have a question about this:

I am interested in reducig my G++ executable file size in a linux ARM 
based device. At the moment my executable  has 700kBytes around  and 
gziped the file is reduced to 200Kbytes of size. I thik this amount of 
size is due to g++ name mangling I used the nm utility and saw the 
generated names to the methods of clasess and these are preceded of 
class name. This is very expensive in the final executable file size.


1) I don't know what makes  -fsquangle option with then symbol names. Is 
there any documentation about this?
2) It is possible to "obfuscate" some symbolnames in the final 
executable file to reduce the file size of may executable. In the faq is 
metioned the use of GNU as. Where can find some documentation or 
dicussion groups about this?

Thank you very much

Best regards,

Javier




More information about the Gcc-help mailing list