[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic compiler



Michael J. Mahon wrote:
Knut Roll-Lund wrote:
I have a basic compiler for the TRS-80 that does a strange hybrid thing; ACCEL2. I bought it back in the old days. It will put assembly into comments within the basic program and there is a small runtime library too. It will compile only what is advantageous. The output is smaller and a lot faster.


An interesting approach...so it must "patch" the BASIC program so that
it gets control to the machine code?

The TRS-80 has basic in rom executing straight out if the ROM, 12K (and many machine code programs rely on calling rom routines) but it has some jumps to the low ram which are made for disk basic to add some commands for disk handling etc. These jump-returns are used to intercept basic.

--
Knut
(delete 'nogarbage.' for email)