Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
andrewchambers
· 11y ago · 0 comments
Eliminating memory allocations made tcc extremely fast, They use a value stack rather than an AST. I just think an AST is a bit easier to follow because it means the parser has less code generation logic embedded in it.
Comments
[–]
rswier
11y ago
No malloc/free necessary. Just pile up nodes on a stack, then "deallocate" to any saved position.