|
|
|
|
|
by pag
2718 days ago
|
|
I think you could produce much better machine code by "templatizing" the stack allocations into function-specific pattern variables, passed to a single alloca-like function which uses the template to figure out how much stack space to allocate, displaces the stack pointer, and sets up all your metadata in one swoop. Also, this would improve the upgradability of the runtime/metadata, as it would be decoupled. |
|
Hope this clarify what I meant your idea will make C like Java.