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

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

Re: [avr-gcc-list] code for 90s4433 is using SPH


From: Volkmar Dierkes
Subject: Re: [avr-gcc-list] code for 90s4433 is using SPH
Date: Sun, 23 Feb 2003 19:09:09 +0100
User-agent: 40tude_Dialog/2.0.3.1 Hamster/2.0.0.1

On Sun, 23 Feb 2003 18:14:52 +0100, Marek Michalkiewicz wrote:

>> Strange.  Than i'd say that -mtiny-stack doesn't work as announced.
>
> That's because -mtiny-stack can be used on devices with SPH, too.
> SPH is initialized at startup, and never changed later.  This is
> fine if we know the stack fits within a 256-byte aligned page.

But another issue what happens at the time when accessing local 
variables: The Y-register is loaded with SPH and SPL and an offset. 
If tiny-stack is used, only SPL is valid, so YH should be loaded 
with 0 instead of SPH. My opinion.

Volkmar


reply via email to

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