From 6e84dc968bc4eaf047fbefcba2f670940718dda8 Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Mon, 9 Nov 2020 11:36:14 +0000 Subject: Add toolchain for riscv (ia ic il) and riscv64 (ja jc jl) Because the rv64 ISA is very nearly a proper superset of rv32, the compilers ic and jc are actually the same program, which compiles to .i or .j depending on how it is invoked; similarly for ia/ja and il/jl. It is also possible to invoke ia/ic/il with a '-j' option to specify 64-bit behaviour. --- utils/il/mkfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 utils/il/mkfile (limited to 'utils/il/mkfile') diff --git a/utils/il/mkfile b/utils/il/mkfile new file mode 100644 index 00000000..4a655086 --- /dev/null +++ b/utils/il/mkfile @@ -0,0 +1,39 @@ +<../../mkconfig + +TARG=il # also makes jl (for riscv64) + +OFILES=\ + asm.$O\ + compress.$O\ + list.$O\ + noop.$O\ + obj.$O\ + optab.$O\ + pass.$O\ + span.$O\ + enam.$O\ + $TARGMODEL.$O\ + elf.$O\ + +HFILES=\ + l.h\ + ../ic/i.out.h\ + ../ld/elf.h\ + +LIBS=bio 9 # order is important + +BIN=$ROOT/$OBJDIR/bin + +<$ROOT/mkfiles/mkone-$SHELLTYPE + +CFLAGS= $CFLAGS -I../include -I. + +enam.$O: ../ic/enam.c + $CC $CFLAGS ../ic/enam.c +elf.$O: ../ld/elf.c + $CC $CFLAGS ../ld/elf.c + +$TARGMODEL.$O: ../ld/$TARGMODEL.c + $CC $CFLAGS ../ld/$TARGMODEL.c + +install:V: $BIN/jl -- cgit v1.2.3