Hi Jacek, Thanks for providing the FAQ.
I found answer 10 to be very informative. I too had noticed the 40K of baggage that the c++ compiler appends to programs. However, I didn't know that the -fno-exceptions flag could reduce this. Unfortunately, try as I might, I could not get haret (see http://www.handhelds.org/moin/moin.cgi/HaRET) to shrink with -fno-exceptions. As a guess, it looks like anything that requires libsupc++.a is going to pull in the exception code. Many basic c++ constructs (eg, vtables, new, delete) pull in that library. As a result, it looks like the effort of removing the exception code is about on par with porting the app to C. Oh well. -Kevin On Thu, Nov 29, 2007 at 10:34:00PM +0100, Jacek M. Holeczek wrote: > See question/answer 10 in my FAQ for explanations (in short, the 40kB > size difference came from the "exception handling" code). > Best regards, > Jacek. > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Cegcc-devel mailing list > Cegcc-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cegcc-devel ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel