3 ms·
Love that compilers are also listed. Original BASIC was compiled, sometimes I wonder if those 8 bit machines also had compilers available, how that would have
by pjmlp 2y ago
Love that compilers are also listed.
Original BASIC was compiled, sometimes I wonder if those 8 bit machines also had compilers available, how that would have impacted the use of BASIC, versus the BASIC vs Assembly duality of the time.
- WillAdams 2y agoSort of? I remember instructions from a magazine on how to enter a line of BASIC code, then peek at a particular series of locations in memory, write those down, then make use of that code in lieu of the original BASIC code inside the original BASIC program --- used it for loops inside a game for updating the screen and polling the keyboard.
- pjmlp 2y agoIsn't really the same though, that would be like using MS-DOS debug instead of proper compiler.
- WillAdams 2y agoThat's why I said: >Sort of? Back in the days of floppy disks and cassette tapes and 16--64KB memory spaces it was pretty hard to run into a real performance issue aside from games or sorting. For the former, converting the inner loops as I described seemed to work, and I suppose it would have at least helped to some degree on the latter. That said, yes, all the cool stuff was in assembly, and that lasted through to the early GUI days to some degree --- my favourite word-processor was WriteNow for the Mac/NeXT, ~100,000 lines of assembler.
- reaperducer 2y agoI wonder if those 8 bit machines also had compilers available They did.
- pjmlp 2y agoZX Spectrum family certainly did not had any usable one, and the few attempts that existed weren't usable over raw Z80, due to the code quality and having to deal with the memory space that was anyway reserved for the builtin interpreter. I don't remember if the CP/M offering for the 128K +3A had any compiler available, but I only knew one person with such a model, thus I never really tried out myself.
- WillAdams 2y agoI always regretted that though I got a cassette copy of Pascal for the TRS-80, I was unaware of their being a patch to make it work in TRS-DOS. Anyone, here's an example of one compiler for an 8-bit machine: http://www.trs-80.org/pascal-80/ http://www.trs-80.org/pascal-80/
- sombragris 2y agoIndeed. I remember CBASIC, a compiled basic for CP/M systems. https://en.wikipedia.org/wiki/CBASIC https://en.wikipedia.org/wiki/CBASIC