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

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

Re: [avr-gcc-list] avr-gcc ABI: return 8-bit value from function


From: Erik Christiansen
Subject: Re: [avr-gcc-list] avr-gcc ABI: return 8-bit value from function
Date: Tue, 5 Jun 2018 12:35:50 +1000
User-agent: Mutt/1.8.0 (2017-02-23)

Reply-To: address@hidden

On 04.06.18 19:19, Benoit Steinmetz wrote:
> 
> p.s:  I have recently started a topic on avrfreaks about this issue [2].

Your link has caused me to visit avrfreaks for the second time in a
decade, leading me to wonder if answers would appear here. Normally I'd
point to the useful software admonition "Be conservative in what you
output, and liberal in tolerance of input.", but I see that your target
is an ATtiny2313. With only 1K instructions available, I'm surprised
to see any 'C' used at all, and understand the desire to trim every
superfluous instruction.

One question: Does the omission of sign extension by avr-gcc remain
without optimisation for size?

My current project, also on an ATtiny2313, is 100% assembler -
simplified event scheduler, state machines, HAL, the lot. But at least
you could fall back to an ATtiny4313 if the 'C' blows out, I guess.

Erik




reply via email to

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