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

Re: Basic compiler



Knut Roll-Lund wrote:
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.

Sorry, I should have been more precise: by BASIC program, I meant
the tokenized text of the BASIC program, not the BASIC interpreter.

-michael

NadaNet networking for Apple II computers!
Home page:  http://members.aol.com/MJMahon/

"The wastebasket is our most important design
tool--and it's seriously underused."