Release 0.2
This commit is contained in:
parent
94a986bf44
commit
4fb4e28405
|
@ -37,6 +37,7 @@ Added M1-macro test
|
||||||
Added prototypes to allow functions to be independently built
|
Added prototypes to allow functions to be independently built
|
||||||
Added support for debug format output to help debugging
|
Added support for debug format output to help debugging
|
||||||
Added function specific counters to make output even more deterministic
|
Added function specific counters to make output even more deterministic
|
||||||
|
Added M1-macro seed to eliminate C compiler dependency for bootstrap
|
||||||
|
|
||||||
** Changed
|
** Changed
|
||||||
Improving Documentation to help new programmers get functional
|
Improving Documentation to help new programmers get functional
|
||||||
|
|
|
@ -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
|
3
makefile
3
makefile
|
@ -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
|
M2-Planet: M2-Planet-gcc | bin results
|
||||||
./test/test100/hello.sh
|
./test/test100/hello.sh
|
||||||
|
|
||||||
|
Bootstrap: bootstrap.sh
|
||||||
|
./bootstrap.sh
|
||||||
|
|
||||||
# Clean up after ourselves
|
# Clean up after ourselves
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -1,6 +1,25 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
set -ex
|
set -ex
|
||||||
# Build the test
|
# 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 \
|
bin/M2-Planet-gcc -f test/functions/file.c \
|
||||||
-f test/functions/malloc.c \
|
-f test/functions/malloc.c \
|
||||||
-f test/functions/calloc.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_core.c \
|
||||||
-f cc.c \
|
-f cc.c \
|
||||||
-o test/test100/cc.M1 || exit 1
|
-o test/test100/cc.M1 || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Macro assemble with libc written in M1-Macro
|
# Macro assemble with libc written in M1-Macro
|
||||||
M1 -f test/common_x86/x86_defs.M1 \
|
M1 -f test/common_x86/x86_defs.M1 \
|
||||||
|
|
Loading…
Reference in New Issue