2015-08-03 20:39:05 -03:00
2015-08-02 22:47:30 -03:00
2015-08-03 20:10:07 -03:00
2014-04-07 03:57:04 +00:00
2014-03-02 13:08:46 +00:00
2015-08-02 22:47:30 -03:00
2015-03-12 01:25:29 +00:00
2015-08-03 20:39:05 -03:00

LLVM with 6502 backend

This is an LLVM fork that tries to implements an MOS 6502 backend.

Build

Refer to the Getting Started guide from LLVM.

A quick way to start (on Linux):

  • Clone this repository
  • Run inside directory:
mkdir build
cd build
cmake .. -DLLVM_TARGETS_TO_BUILD:STRING="X86;Mos6502"
make -j4

If you want to build more targets, append them to the LLVM_TARGETS_TO_BUILD variable. Adjust -j option of make in case you have more processor cores.

Install

Run make install as usual.

Usage

TODO: Write how to convert from C/C++ with Clang to IR and 6502 assembly code.

Tests

To run regression tests for the MOS 6502 target, run from build/

make check-llvm-codegen-mos6502

For more information on the LLVM test suite, refer to the Testing Guide.

Description
LLVM backend for 6502
Readme 277 MiB
Languages
C++ 48.7%
LLVM 38.5%
Assembly 10.2%
C 0.9%
Python 0.4%
Other 1.2%