Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The L-BASIC compiler
#7
It's a sensible question to ask, why work on another compiler when we already have one?

I see this largely as a research project. It's never going to be a replacement for QB64 because it doesn't have full backward compatibility with QBasic (the biggest example being that x& and x% aren't allowed as separate variables here), and so I don't expect it to gain much general use. However it's an opportunity to experiment with a different architecture, both in terms of the compiler itself and the runtime libraries. The underlying machine code generator (llvm) has support for Just-In-Time compilation, which I expect to be able to use to add an interactive interpreter mode while reusing most of the parsing and runtime code. It is also possible to target webassembly, which opens interesting possibilities for compiling programs to run in the browser.

I doubt I'll ever be able to catch up to QB64 in terms of command support; at the rate Matt & the team are adding things, they keep getting further away. But that's okay because I'm not trying to be a replacement, just a look at how things could be done.

Also an lbasic hello world program is only 76KB and runs instantly, so I'm pretty happy with that Smile
Reply


Messages In This Thread
The L-BASIC compiler - by luke - 01-06-2023, 01:16 PM
RE: The L-BASIC compiler - by Kernelpanic - 01-06-2023, 08:06 PM
RE: The L-BASIC compiler - by cage - 01-06-2023, 10:24 PM
RE: The L-BASIC compiler - by SpriggsySpriggs - 01-10-2023, 02:39 PM
RE: The L-BASIC compiler - by mnrvovrfc - 01-06-2023, 10:59 PM
RE: The L-BASIC compiler - by mnrvovrfc - 01-08-2023, 08:22 PM
RE: The L-BASIC compiler - by Kernelpanic - 01-08-2023, 09:40 PM
RE: The L-BASIC compiler - by PhilOfPerth - 01-06-2023, 11:01 PM
RE: The L-BASIC compiler - by SMcNeill - 01-07-2023, 12:05 AM
RE: The L-BASIC compiler - by luke - 01-07-2023, 02:27 AM
RE: The L-BASIC compiler - by Kernelpanic - 01-07-2023, 04:01 PM
RE: The L-BASIC compiler - by mnrvovrfc - 01-07-2023, 11:57 PM
RE: The L-BASIC compiler - by Jack - 01-07-2023, 01:39 PM
RE: The L-BASIC compiler - by bplus - 01-07-2023, 02:40 PM
RE: The L-BASIC compiler - by Kernelpanic - 01-07-2023, 06:56 PM
RE: The L-BASIC compiler - by Kernelpanic - 01-07-2023, 08:15 PM
RE: The L-BASIC compiler - by luke - 01-08-2023, 05:08 AM
RE: The L-BASIC compiler - by Kernelpanic - 01-08-2023, 05:24 PM
RE: The L-BASIC compiler - by luke - 01-08-2023, 09:55 PM
RE: The L-BASIC compiler - by Kernelpanic - 01-08-2023, 11:21 PM
RE: The L-BASIC compiler - by a740g - 01-10-2023, 01:13 PM
RE: The L-BASIC compiler - by Jack - 05-20-2024, 01:12 PM
RE: The L-BASIC compiler - by luke - 05-21-2024, 12:14 PM
RE: The L-BASIC compiler - by Jack - 05-21-2024, 12:31 PM
RE: The L-BASIC compiler - by Jack - 05-21-2024, 02:27 PM
RE: The L-BASIC compiler - by Jack - 05-21-2024, 04:24 PM
RE: The L-BASIC compiler - by luke - 05-22-2024, 10:51 AM



Users browsing this thread: 9 Guest(s)