[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Don't use gcc 3.4.4, use 4.0.1
From: |
Ben Jackson |
Subject: |
[avr-gcc-list] Don't use gcc 3.4.4, use 4.0.1 |
Date: |
Thu, 28 Jul 2005 14:39:48 -0700 |
User-agent: |
Mutt/1.5.6i |
When I built gcc for AVR I wasn't sure what the Right version of GCC to
use was. I've been using a cross-compiling GCC 3.4.4 for another platform
with success so I went with that. However, even with -morder1 and -fnew-ra,
the code is not nearly as good as 4.0.1 for AVR. My main test file .o text
(at the moment mostly poking bits and doing integer math) got 12% shorter
with -Os (due in no small part to the fact that it's smarter with registers,
resulting in less spilling, resulting in no need for the prolog/eplilog
callouts).
Of course I've got nearly zero experience with both, so I welcome dissenting
opinions, but I wanted to put the recommendation out there for any other
newbies.
--
Ben Jackson
<address@hidden>
http://www.ben.com/
- [avr-gcc-list] Don't use gcc 3.4.4, use 4.0.1,
Ben Jackson <=