[rosedu-general] [techblog] Stack Allocation Review

Vlad Dogaru ddvlad at rosedu.org
Fri Dec 23 15:58:06 EET 2011


Salut,

Some comments and references on [1]:

* nu mereu argumentele și valorile de return sunt puse pe stivă.  Look
no further than x86_64 [2] or the link register [3];

* stiva nu crește în jos peste tot (ai zis asta), dar poate ajută un
link [4] – e foarte interesant;

* un stack frame nu e creat la fiecare function call (cred) – poate ar
trebui menționate funcții inline?

[1] http://techblog.rosedu.org/stack-allocation.html
[2] http://en.wikipedia.org/wiki/X86_calling_conventions#x86-64_calling_conventions
[3] http://en.wikipedia.org/wiki/Link_register
[4] http://stackoverflow.com/questions/664744/what-is-the-direction-of-stack-growth-in-most-modern-systems

Anyways, nice read, îmi place că nu are cuvinte în plus față de informație.

Vlad


More information about the rosedu-general mailing list