avr-gcc-list
[Top][All Lists]
Advanced

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

RES: [avr-gcc-list] float type


From: Eric Pasquier
Subject: RES: [avr-gcc-list] float type
Date: Tue, 3 Apr 2007 09:05:28 +0200

You have to compile with no optimization: -O0
The compiler is wiping your code away because your variable x is not used anywhere else.
 
Eric Pasquier
 
-----Mensagem original-----
De: address@hidden [mailto:address@hidden Em nome de andi
Enviada em: mardi 3 avril 2007 08:35
Para: address@hidden
Assunto: [avr-gcc-list] float type

Hi,
 
 
I want to use float type in my code, but after i compile it, the avr-gcc not the generate code for the variable:
 
....
 float x = 1.23;
 x = x*2;
 sei();
....
 
 320:Freq.c        ****  float x = 1.23;
 321:Freq.c        ****  x = x*2;
 322:Freq.c        ****   
 323:Freq.c        ****  sei();
 614                .LM76:
 615                /* #APP */
 616 0258 7894        sei
 617                /* #NOAPP */
 618                .L43:
 
Am I miss something ? I use WinAVR-20040720.
 
Andi
 
 

reply via email to

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