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

Rep:Re: [f-cpu] Stack handling



From the beginning we choose that they will be no hardware stack in
F-cpu. Stacks are always a bottleneck. So this should be left on the SW
side.

If you want to avoid the need to save and restore data for call
convention, we should use windowed register (that could be a great thing
to decrease memory pressure, because most of the time there is no memory
access). But the interrupt handler must be really optimised.

For interrupt management, it must have somethings as a lifo to be
reentrant (nested interrupt). The linked list previously proposed is
hard for the hardware and hard to be extended.

nicO

-----Message d'origine-----
De: Juergen Goeritz <goeritz@oekomm.de>
A: f-cpu@seul.org
Date: 24/07/02
Objet: Re: [f-cpu] Stack handling

Sorry for the typo - must be lifo of course.

On Wed, 24 Jul 2002, Juergen Goeritz wrote:
>Apropos call/return saving of return address. I am not
>really convinced that return address handling should
>be a matter of the code. As someone mentioned before
>this requires the need for defining which register
>contains what data already in a statically fixed manner.
>
>The return addresses are the most critical part. If you
>get wrong data you simply get wrong results but if your
>return address gets faked the program crashes (I know
>there are exceptions where it needs fake to circumvent
>some processor inconveniences - but not f-cpu so far).
>
>So why not use a simple fifo type structure onchip for
>separate return address handling?
>
>JG
>
>*************************************************************
>To unsubscribe, send an e-mail to majordomo@seul.org with
>unsubscribe f-cpu       in the body. http://f-cpu.seul.org/
>

*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/

 
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/