[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Horrible code
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Horrible code |
Date: |
Wed, 17 May 2006 11:04:56 +0200 (MET DST) |
address@hidden (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__
..L2:
sbic 57-0x20,6
rjmp .L3
rjmp .L12
..L5:
out 59-0x20,__zero_reg__
..L12:
sbis 57-0x20,6
rjmp .L5
rjmp .L13
..L7:
out 59-0x20,__zero_reg__
..L13:
sbis 57-0x20,6
rjmp .L7
rjmp .L14
..L9:
out 59-0x20,__zero_reg__
..L14:
sbis 57-0x20,6
rjmp .L9
ret
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/