4 ms·
Lol because it was a fucking complete ide and compiler on a single low density floppy disk. And what you’re saying is of course impossible.. determining if the
by ofibrvev 7y ago
Lol because it was a fucking complete ide and compiler on a single low density floppy disk.
And what you’re saying is of course impossible.. determining if the function is called by static analysis is not possible.
If input = 1 then delay end
is impossible to analyze statically.
If you meant reference to delay, that is a bit more tractable. But then when do you actually initialize, you will see that program initialization is about the only practical place to do it. Which is exactly what is done.
- aflag 7y agoYes, I meant referenced in the code, not necessarily called during execution. It makes sense to do it in the beginning if delay is referenced. I guess it was just a small optimization that they decided to do without then.
- ksherlock 7y agoNowadays with modern linkers, your delay function could have a strong reference to a delay init constructor which would get dragged in, as needed, and run at program start up time.
- bonzini 7y agoThe loop was in the initialization code of the unit, and the initialization code was monolithic and triggered simply by the "uses crt" statement.