[LLVMdev] Nested functions
Vladimir Merzliakov
wanderer at rsu.ru
Mon Nov 22 10:34:20 PST 2004
> As an optimization for shallow nested functions (e.g., 3 levels or less),
> it seems to me you could just avoid the stack walking entirely and add
> $k-1$ arguments to each function at level $k$, i.e., at most 2 arguments
> in all. This may even be an easy first implementation.
I use this method with filtering unused in nested function args and local
vars
in my YAFL frontend (not finished :(( - at this moment generate LLVM
bytecode but doesn't have all runtime suport code writed)
Vladimir
More information about the llvm-dev
mailing list