3 ms·
The Applesoft Compiler (TASC): We have the source code, in a sense
- jepler 5y agoSo many things done on these computers seem "heroic" now, given how profligate we are in our use of memory by comparison. Write a compiler of any sort in 48kB of code+data? It sounds impossible today. Oh, and of course every million instructions took several seconds, so be prepared to wait.
- dekhn 5y agobuy yourself an ESP32 and have some fun. Or if that's too resourcey, an Atmel 8-bit.
- jepler 5y agoabsolutely great advice! Another avenue that is more like "those days" are modern old-style computers like the Z80-based RC2014 ecosystem (I don't own one, but eye them monthly).
- TMWNN 5y ago>Write a compiler of any sort in 48kB of code+data? No, even better. The article doesn't ever explicitly say so; Chen expects the reader to understand from his words that TASC was written in Applesoft BASIC!
- deleted 5y ago[deleted]
- TMWNN 5y agoBeyond being written in Applesoft BASIC as I noted elsewhere, TASC's coverage of BASIC keywords is almost entirely complete, going by chapter 7 of the manual. Any given Applesoft program has a very high chance of successfully compiling out of the box, and the very few differences with the interpreted language can be easily worked around (if the `DIM` command is any indication). As one used to aftermarket compilers that only support subsets of the language, TASC's comprehensiveness is very, very impressive.