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

Rep:Re: Rep:Re: Rep:Re: [f-cpu] Stack handling



Nicolas Boulay wrote:
> That's not the point. When i say "stack for code", it's a stack where
> you put you're return adresse when you maid a function  call or
> something like that. That's not terrific for speed so i prefer having
> "some" data stack like you said. 
> 
> That's an argument to change calling convention one more time ? ;p
> 


For calling convention I've just realesed a draft about it in my folder 
on seul.org (in thomas\call_draft.html) it's not yet finished and I'd 
love your feedback and comment.
But he explain that we only need to define a call convention to 
inter-language call so this CC don't have to be time critical, but he 
need to be simple, so the return address was stored in a register.

But each compiler could choose to implement a stack for return address 
for all is internal call if he want (it seems better for security, but 
if programmer make good job...)

This talk about two different stack was hardware related it was a 
software discution and it was dependent of each compiler.


-- 
Thomas Lavergne                       "Le vrai rêveur est celui qui rêve
                                        de l'impossible."  (Elsa Triolet)
thomas.lavergne@laposte.net
d-12@laposte.net    ICQ:#137121910     http://assoc.wanadoo.fr/thallium/

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