From llvm-mos
Revision as of 01:58, 29 October 2023 by Jbyrd (talk | contribs) (Trivial edit to test editing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hello world of LLVM assembler targeting Commodore VIC-20
Hello world of LLVM assembler targeting Apple IIe
Hello world of LLVM assembler targeting Commodore 64
Hello world in Rust, with factorial calculation, for Atari 800, proof of concept by mrk
Hello world in C, targeting Ohio Scientific Challenger 1P, port by Stephan Mühlstrasser
NES project in pure C99 using llvm-mos, by Steven Poulton
Hello Commander X16 from C

Welcome to the llvm-mos project![edit | edit source]

8-bit LLVM dragon logo

llvm-mos is a fork of LLVM supporting the MOS Technology 65xx series of microprocessors and their clones.

To get started playing with the tools, check out Getting started with our SDK. See also the SDK API reference.

The llvm-mos Clang is broadly compatible with freestanding C99 and C++ (with some notable exceptions) and the relevant portions of the LLVM end-to-end test suite pass on a simulated 6502 in a variety of configurations. The project also includes a feature-complete assembler and ELF linker support for generic 6502 targets.

This project permits modern C programs, written in a modern style, to target common microcomputers of the 1980s, including but not limited to the Commodore 64, the Apple IIe, Atari 8-bit family, and the NES.

Our work is based on LLVM's novel GlobalISel architecture, and our compiler is aggressive about pursuing optimization opportunities for the 65xx series. While there's still much work to be done, we've already overcome the major theoretical hurdles necessary to emit high quality 6502 code.

Core development occurs on a project on Github. Acceptance tests and packaging occur via Github actions as well.

Ongoing, public development discussions occur on Discord. If you'd like to help, then please join our Discord group now.

Notice[edit | edit source]

The llvm-mos project is not officially affiliated with or endorsed by the LLVM Foundation or LLVM project. Our project is a fork of LLVM that provides a new backend and Clang target; our project is based on LLVM, not a part of LLVM. Our use of LLVM or other related trademarks does not imply affiliation or endorsement.

Category tree[edit | edit source]

Categories[edit | edit source]

Pages[edit | edit source]