
Open-source developer Boisy Gene Pitre announced his BASIC09 front-end today to LLVM developers and inquiring over upstreaming it into the LLVM codebase. This "basic09c" compiler can lex and parse BASIC09 code, proper AST construction, semantic checks, and emits LLVM IR for use by the various different LLVM back-ends. This depends upon no Motorola 6809 specific support nor OS-9.
Boisy Gene Pitre wrote in the RFC announcement of this BASIC09 front-end:
"BASIC09 was a structured BASIC dialect used on OS-9/6809 and OS-9/68K systems, especially the Tandy Color Computer ecosystem. It has procedures, typed variables, arrays, control flow, and a compilation model that makes it a reasonable candidate for preservation through a modern compiler infrastructure.
My goal is to preserve and compile existing BASIC09 programs by lowering them to LLVM IR. Longer term, this could allow BASIC09 programs to target multiple backends, not just historical 6809 systems.
This work started in the context of MC6809/OS-9 experimentation, but I have separated the compiler frontend from that backend-specific work. The frontend should stand on its own."
While interesting on technical grounds and another front-end for exercising LLVM, don't look for it to go mainline in the Linux kernel. LLVM developer Eli Friedman responded to today's announcement, " It’s nice to hear you’re finding LLVM useful for building your compiler. That said, a niche programming language from the 80’s is never going to meet our criteria for adding new languages to LLVM. "
Similarly, prominent LLVM developer Nikita Popov commented that the project can live independently and simply link to LLVM as a library.