Re: Code bloat with PRC-Tools?

2005-05-25 Thread Greg Parker
David Linker writes: > Add -O1flag > 39,272 bytes > > Add -O2 flag > 39,844 bytes > > It looks like the -O1 and COMPRESS options get it within "striking > distance". Try using -Os ("optimize for size"). It's usually faster than -O1 and smaller than both -O1 and -O2. -- Greg Parker [EM

Re: Code bloat with PRC-Tools?

2005-05-25 Thread David Linker
Thank you to all who replied. Here are the results: Original CW PRC 38,538 bytes PRC-Tools with no compiler flags, COMPRESS for bitmaps 47,228 bytes Add -fno-exceptions -fno-rtti flags No change (not surprising since I am using straight C code) Add -O1flag 39,272 bytes Add -O2 flag 39,844 by

re: Code bloat with PRC-Tools?

2005-05-19 Thread roderick young
When you compile for release, you want to add ADDITIONAL_COMPILER_FLAGS = -O2 to your makefile. But don't do this when compiling for debug, only just before final testing for release. For debug, you actually want code that matches your source line-for-line, and optimization can destroy that.

Re: Code bloat with PRC-Tools?

2005-05-19 Thread Michal Seliga
Of David Linker > Sent: Wednesday, May 18, 2005 10:33 AM > To: Palm Developer Forum > Subject: Code bloat with PRC-Tools? > > I have just migrated an application from CW to PRC-Tools. My > completed application was 38K with CW, but it is 51K with PRC-Tools! > > If I add "

RE: Code bloat with PRC-Tools?

2005-05-18 Thread Michael Hallett
[EMAIL PROTECTED] On Behalf Of David Linker Sent: Wednesday, May 18, 2005 10:33 AM To: Palm Developer Forum Subject: Code bloat with PRC-Tools? I have just migrated an application from CW to PRC-Tools. My completed application was 38K with CW, but it is 51K with PRC-Tools! If I add "COMPRES

Code bloat with PRC-Tools?

2005-05-18 Thread David Linker
I have just migrated an application from CW to PRC-Tools. My completed application was 38K with CW, but it is 51K with PRC-Tools! If I add "COMPRESS" for the bitmaps, it is still 48K. Are there some options I should be setting for smaller code size? I looked in the documentation for m68k-pa