RE: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread Weddington, Eric
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Ramazan Kerek Sent: Thursday, April 17, 2008 1:16 AM To: avr-gcc-list@nongnu.org Subject: [avr-gcc-list] optimization flags causes problems?? Hello, I have started using AT90CAN128 with

Re: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread Wouter van Gulik
Ramazan Kerek schreef: Hello, I have started using AT90CAN128 with WinAVR-20080402. I am having problem with with optimizatin flags. Do not use 20080402, use 20080411. HTH Wouter ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org

RE: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread Ramazan Kerek
Thanks alot. I will try it. Best Regards Ramazan Kerek -Original Message- From: Wouter van Gulik [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 11:31 AM To: Ramazan Kerek Cc: avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] optimization flags causes problems?? Ramazan

RE: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread Ramazan Kerek
Subject: RE: [avr-gcc-list] optimization flags causes problems?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Ramazan Kerek Sent: Thursday, April 17, 2008 1:16 AM To: avr-gcc-list@nongnu.org Subject: [avr-gcc-list] optimization flags

Re: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread David Brown
Ramazan Kerek wrote: I have installed 20080411 and seen the same problems as I did in 20080402. Is there anything else I should try? What compiler flags did you use? If you compile the code you gave, use -O0 and -Os, what is the generated assembly code? Incidentally, why are you writing

RE: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread Ramazan Kerek
Please see my comment on your questions below. Best Regards R. Kerek What compiler flags did you use? - -Wall, -gdwarf-2, -std=gnu99, -O0, -funsigned-char, -funsigned-bitfields, fpack-struct, -fshort-enums If you compile the code you gave, use -O0 and -Os, what is the generated assembly

Re: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread David Brown
Ramazan Kerek wrote: Please see my comment on your questions below. Best Regards R. Kerek What compiler flags did you use? - -Wall, -gdwarf-2, -std=gnu99, -O0, -funsigned-char, -funsigned-bitfields, fpack-struct, -fshort-enums Try compiling with -mmcu=atmega128. Without an appropriate

Re: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread Joerg Wunsch
Ramazan Kerek [EMAIL PROTECTED] wrote: 2-I am using EEPROM_Write/Read functions in my project. When I compile the project with -O0 option, and start dtata transfer to EEPROM memory, I do not see any transfer to EEPROM memory. As you told the compiler to not optimize, the generated code is

RE: [avr-gcc-list] optimization flags causes problems??

2008-04-17 Thread Ramazan Kerek
@nongnu.org Subject: Re: [avr-gcc-list] optimization flags causes problems?? Ramazan Kerek [EMAIL PROTECTED] wrote: 2-I am using EEPROM_Write/Read functions in my project. When I compile the project with -O0 option, and start dtata transfer to EEPROM memory, I do not see any transfer to EEPROM memory