Compiling Programs

From: Edward Muller <edwardam_at_home.com>
Date: Mon, 11 Jun 2001 18:29:17 -0500

Sorry for the cross list posting....But I think this is important enough...

I want to ask people compiling programs for the iPAQ to compile them with the
-Os optimization instead of the -O2 optimization. According to the gcc man
pages/information that I've read -Os is like -O2, but with additional
optimizations for size (not RAM, but file).

In the programs I've compiled for the iPAQ I've seen anywhere from 10% to 20%
size reductions (usually around 10%, but 10% across 16 MB is 1.6 MB ... :-)

So, unless anyone more in the know about gcc compiler issues (if you are
please speak up) has any objections/corrections/etc I'd like to plead with
those people that are compiling and packaging apps, be them for Familiar or
any other iPAQ distro, to PLEASE use -Os.

-- 
Edward Muller - edwardam_at_home.com - edwardam_at_handhelds.org
There are two kinds of people, those who do the work and those who take the 
credit. Try to be in the first group; there is less competiton there.
Received on Mon Jun 11 2001 - 15:26:43 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:12:27 EDT