Reference N19 compiler implementation (x86 only for simplicity)
Go to file
2023-08-27 19:48:06 +03:00
src Initial commit 2023-08-27 19:48:06 +03:00
tests Initial commit 2023-08-27 19:48:06 +03:00
.gitignore Initial commit 2023-08-27 19:48:06 +03:00
Makefile Initial commit 2023-08-27 19:48:06 +03:00
README.md Initial commit 2023-08-27 19:48:06 +03:00

N19 Reference Compiler

Made to compile fast and produce not great, but acceptable output. Currently only 386 output supported (protected and partially real mode).

Installation

make

sudo make install

Command-line usage

ntc arg1=val1 arg2=val2 ... argn=valn

Valid arguments

This will be ported into a man page later:

(TBA) x86_target: Target processor feature set (0 for 8086, 3 for 80386, m for generic x86_64)
(TBA) x86_mode: Target operating mode (16 for 16-bit real mode, 32 for 32-bit protected mode or long mode, 64 for 64-bit long mode)
in: Input Nectar source file

Unknown arguments are ignored.