sheredom/yair

Stack frame allocation a la `alloca`?

otrho opened this issue · 3 comments

otrho commented

At the moment there seems to be support for globals only. Are there plans for alloca or does it not quite fit the design for some reason?

You can do stack allocations with stackalloc (see https://github.com/sheredom/yair/blob/master/tests/lit/all/assembler/insts/stackalloc.ya for an example!).

otrho commented

Far out, how on earth did I miss that? Sorry!

Pft no worries man - the documentation is still a work in progress 😄