Re: [avr-gcc-list] Horrible code

2006-05-17 Thread Joerg Wunsch
[EMAIL PROTECTED] (Joerg Wunsch) wrote: > Here's the code generated by GCC 4.1.0 with -mmcu=atmega128 -Os: Grmpf. Sorry, wrong machine used. This was GCC 3.4.6. 4.1.0 is way better: ..global test7 .type test7, @function test7: rjmp .L2 ..L3: out 59-0x20,__zero_reg__

Re: [avr-gcc-list] Horrible code

2006-05-17 Thread Joerg Wunsch
"James L. Evans" <[EMAIL PROTECTED]> wrote: > Could someone with a 4.1 version of the AVR-GCC compiler please > compile the following code (-Os) and see if it generates better code > than the horrible code (25 instructions) generated for Case 2 by > version 3.4.3? Here's the code generated by GCC

RE: [avr-gcc-list] Horrible code

2006-05-16 Thread Larry Barello
3.4.5 winavr produces nice tidy code. Even the compares with 0 reduce to tight sbic/jmp pairs. --- Larry Barello www.barello.net | -Original Message- | From: [EMAIL PROTECTED] [mailto:avr-gcc- | [EMAIL PROTECTED] On Behalf Of James L. Evans | Sent: Tuesday, May 16, 2006 3:47 PM