Date: Sun, 21 Mar 2004 16:53:56 +1100 (EST) From: Andrew MacIntyre <andymac@bullseye.apana.org.au> To: Garance A Drosihn <drosih@rpi.edu> Cc: hackers@freebsd.org Subject: Re: Adventures with gcc: code vs object-code size Message-ID: <20040321164733.N33243@bullseye.apana.org.au> In-Reply-To: <p0602044cbc827481888c@[128.113.24.47]> References: <p0602044cbc827481888c@[128.113.24.47]>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Mar 2004, Garance A Drosihn wrote: > I am not a compilier guru, so I suspect it would take me hours to > pin this down. I don't want to do that, so I'm wondering if anyone > understands how such a minor code-change can POSSIBLY cause such a > huge change in resulting object file... I also wonder if this same > issue pops up in other programs, too. I'm not a guru either, but I've seen a case where adding code (mostly switch clauses) caused a size reduction (on i386 anyway)... Depending on the optimisation level, it might be that the added code is affecting the heuristics gcc is using for inlined functions etc. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac@pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040321164733.N33243>