[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] ATMega128, fuse bits, program optimisation, several q

From: E. Weddington
Subject: Re: [avr-gcc-list] ATMega128, fuse bits, program optimisation, several questions
Date: Sun, 05 Jun 2005 06:27:49 -0600
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Torsten Mohr wrote:

The last time i compiled a program for an AVR was with gcc-2.95.2.

When compiling a test program for it, what optimisation level
do i need to set?  I thought that at least -O2 is needed so that
some asm statements won't get "optimised away".
(I tried my test program with -Os, -O0 and -O2.)
So far the best one in that set is the one for size: -Os. In the avr-libc user manual, FAQ, there is a discussion about what the optimal settings are for reducing code size.

FYI, The very latest toolset versions (that are stable) are:
binutils 2.16
gcc 3.4.4
avr-libc 1.2.3


reply via email to

[Prev in Thread] Current Thread [Next in Thread]