Re:Writing a C compiler in 500 lines of Python
by brundolf on Tuesday September 05, 2023 @03:20PM
(#37396460)
I think this goal may also have shifted over time. I remember when I learned C, we used c89, which required declaring all local variables at the top of the block. This seemed like a weird/arbitrary requirement at the time (and is no longer required in later versions), but it makes a lot of sense in a single-pass context! It would allow the stack frame for the current function to be fully sized before any other logic is compiled
[ Parent
| on HN ]
There are no comments on this comment yet.