summaryrefslogtreecommitdiff
path: root/miniany/README
diff options
context:
space:
mode:
Diffstat (limited to 'miniany/README')
-rw-r--r--miniany/README21
1 files changed, 16 insertions, 5 deletions
diff --git a/miniany/README b/miniany/README
index c011906..53266d6 100644
--- a/miniany/README
+++ b/miniany/README
@@ -1,17 +1,20 @@
-# Building
+# Running on host:
```
./build.sh cc tcc hosted d
./build.sh cc tcc freestanding d
+./cc < test1.c > test1.asm
+fasm test1.asm test1.bin
+ndisasm -b32 -o1000000h -a test1.bin
```
# Running on c4:
```
-tcc -O0 -g -o c4 c4.c
-./c4 cc.c < hello.c
-./c4 c4.c cc.c < hello.c
-./c4 c4.c c4.c cc.c < hello.c
+echo -n -e "\034" > EOF
+cat cc.c EOF hello.c | ./c4
+cat c4.c EOF cc.c EOF hello.c | ./c4
+cat c4.c4 EOF c4.c EOF cc.c EOF hello.c | ./c4
```
# Local version of c4
@@ -33,6 +36,14 @@ complex things into our own compiler.
- some simplified functions for printing like putstring, putint, putnl
- strict C89 conformance, mainly use standard comment blocks, also
removed some warnings
+ - some casts around malloc and memset to fit to non-void freestanding-libc
+ - converted printf to putstring/putint/putnl and some helper functions
+ for error reporting like error()
+ - removed memory leaks
+ - de-POSIX-ified, no open/read/close, use getchar from stdin only
+ (don't assume the existence of a file system), this also means
+ we have to create sort of an old style tape-file with FS markers
+ to separate the files piped to c4.
# Acknoledgments and references