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

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

Re: [avr-gcc-list] Optimisation help


From: Wouter van Gulik
Subject: Re: [avr-gcc-list] Optimisation help
Date: Mon, 21 Jan 2008 09:21:11 +0100
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Magnus Johansson schreef:

I totally get the second and third reads. But the first one, just moving r24 to r17 will only work if r24 is only 0x00 or 0x01 not otherwise...?

What should I do?


Well I can't see all assembler so this is a bit of a guess. GCC is probably going to do a conditional load. Since result/r17 could be loaded after the first call it will do so. So it will probably generate a clr and conditional ldi r17, 1 or something alike.

It would help if you provide all of the assembler between the first and the second call.

HTH

Wouter






reply via email to

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