Subject: Re: Other backend than gcc (was: Optimisations break software?)
To: Xavier HUMBERT <xavier@xavhome.fr.eu.org>
From: Todd Vierling <tv@wasabisystems.com>
List: port-macppc
Date: 04/07/2002 13:12:17
On Sun, 7 Apr 2002, Xavier HUMBERT wrote:
: I'm actually trying "-mcpu=7400 -mtune=7400" options, dunno if it will
: makes something run better.
:
: The only differnece I can see before I make a bench is the size !!!!
:
: -rwxr-xr-x 1 root wheel 1797348 Apr 7 13:07 /netbsd-xavier-1.5ZC*
: -rwxr-xr-x 1 root wheel 2616661 Apr 7 13:52 kernelcompile/netbsd*
:
: The first is standard compile options, the second is with "-mcpu=7400
: -mtune=7400"
In the second, did your compile *leave out* the "-O2" default option? That
would account for the huge increase in size, if so. Adding -m* options are
fine, but you have to make sure the -O* optimize option is still there.
To be sure, if the -O* was still there, use the program "size" on each one,
which will show you the actual size of code (vs. data vs. debug symbols and
so forth) in each file.
--
-- Todd Vierling <tv@wasabisystems.com> * Wasabi & NetBSD: Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/