retro-compiler: new runtime (now supports command line arguments)

FossilOrigin-Name: c673f2997a8cb80d8fce3c8736144861cc045705492a8bb84239d962692862a7
This commit is contained in:
crc 2019-05-02 14:46:21 +00:00
parent 4bf09cbc1d
commit fa33a43259
2 changed files with 1547 additions and 33 deletions

View file

@ -161,7 +161,7 @@ interfaces/image.c: bin/retro-embedimage bin/retro-extend bin/retro-muri literat
bin/retro-compiler: io bin/retro-extend interfaces/image.c interfaces/retro-compiler.c interfaces/retro-compiler-runtime.c interfaces/image-functions.o
cp ngaImage runtime.image
./bin/retro-extend runtime.image interfaces/io/filesystem.forth interfaces/io/gopher.forth interfaces/io/floatingpoint.forth interfaces/io/unix.forth interfaces/io/rng.forth interfaces/rre.forth
cd interfaces && $(CC) $(CFLAGS) $(LDFLAGS) -o ../retro-compiler-runtime retro-compiler-runtime.c image-functions.c $(RREIO) $(LIBM)
cd interfaces && $(CC) $(CFLAGS) $(LDFLAGS) -o ../retro-compiler-runtime retro-compiler-runtime.c $(LIBM)
cd interfaces && $(CC) $(CFLAGS) $(LDFLAGS) -o ../bin/retro-compiler retro-compiler.c
objcopy --add-section .ngaImage=runtime.image --set-section-flags .ngaImage=noload,readonly bin/retro-compiler
objcopy --add-section .runtime=retro-compiler-runtime --set-section-flags .runtime=noload,readonly bin/retro-compiler

File diff suppressed because it is too large Load diff