Release 0.2

This commit is contained in:
Jeremiah Orians 2018-06-21 21:33:50 -04:00
parent 94a986bf44
commit 4fb4e28405
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
5 changed files with 16487 additions and 0 deletions

View File

@ -37,6 +37,7 @@ Added M1-macro test
Added prototypes to allow functions to be independently built
Added support for debug format output to help debugging
Added function specific counters to make output even more deterministic
Added M1-macro seed to eliminate C compiler dependency for bootstrap
** Changed
Improving Documentation to help new programmers get functional

22
bootstrap.sh Executable file
View File

@ -0,0 +1,22 @@
#! /usr/bin/env bash
set -ex
# Make the required bin directry
[ -d bin ] || mkdir bin
# Macro assemble with libc written in M1-Macro
M1 -f test/common_x86/x86_defs.M1 \
-f test/functions/libc-core.M1 \
-f seed.M1 \
--LittleEndian \
--Architecture 1 \
-o bin/seed.hex2 || exit 1
# Resolve all linkages
hex2 -f test/common_x86/ELF-i386.hex2 \
-f bin/seed.hex2 \
--LittleEndian \
--Architecture 1 \
--BaseAddress 0x8048000 \
-o bin/M2-Planet \
--exec_enable || exit 2

View File

@ -24,6 +24,9 @@ M2-Planet-gcc: cc_reader.c cc_strings.c cc_core.c cc.c cc_types.c cc.h | bin
M2-Planet: M2-Planet-gcc | bin results
./test/test100/hello.sh
Bootstrap: bootstrap.sh
./bootstrap.sh
# Clean up after ourselves
.PHONY: clean
clean:

16441
seed.M1 Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,25 @@
#! /bin/sh
set -ex
# Build the test
if [ -f bin/M2-Planet ]
then
bin/M2-Planet -f test/functions/file.c \
-f test/functions/malloc.c \
-f test/functions/calloc.c \
-f test/functions/exit.c \
-f test/functions/match.c \
-f test/functions/numerate_number.c \
-f test/functions/file_print.c \
-f cc.h \
-f test/functions/string.c \
-f cc_reader.c \
-f cc_strings.c \
-f cc_types.c \
-f functions/require_match.c \
-f cc_core.c \
-f cc.c \
-o test/test100/cc.M1 || exit 1
else
bin/M2-Planet-gcc -f test/functions/file.c \
-f test/functions/malloc.c \
-f test/functions/calloc.c \
@ -17,6 +36,7 @@ bin/M2-Planet-gcc -f test/functions/file.c \
-f cc_core.c \
-f cc.c \
-o test/test100/cc.M1 || exit 1
fi
# Macro assemble with libc written in M1-Macro
M1 -f test/common_x86/x86_defs.M1 \