os

An operating system
git clone https://erai.gay/code/os/
Log | Files | Refs | README | LICENSE

commit 378c8331bfc694169397809d5d7ef1e483a66873
parent 024504c4dbb1bd94f814b9e22fb1f11738393235
Author: erai <erai@omiltem.net>
Date:   Tue, 15 Jul 2025 15:37:13 -0400

Don't produce call graph output

Diffstat:
Mbootstrap.sh | 4++--
Mbuild.sh | 22+++++++++++-----------
Mkernel.sh | 24++++++++++++------------
Mtest.sh | 16++++++++--------
4 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/bootstrap.sh b/bootstrap.sh @@ -7,9 +7,9 @@ SOURCES="cc1.om cc4.om type.om as.om decl.om node.om ir.om ircout.om rb.om table # Build the bootstrap compiler from c [ cc0 -nt cc0.c ] || ${CC:-gcc} -std=c89 -O1 -g ${BOOTSTRAP} -o cc0 -./cc0 -m ${MACHINE} ${LIBS} ${SOURCES} -o cc1 -n cc1.lines -G cc1.call +./cc0 -m ${MACHINE} ${LIBS} ${SOURCES} -o cc1 -n cc1.lines # Double check the bootstrap and self hosting compiler have the same output -./cc1 ${LIBS} ${SOURCES} -C cc2.c -o cc2 -n cc2.lines -G cc2.call +./cc1 ${LIBS} ${SOURCES} -C cc2.c -o cc2 -n cc2.lines cmp cc1 cc2 || echo cc mismatch cmp cc0.c cc2.c || echo bootstrap mismatch diff --git a/build.sh b/build.sh @@ -5,14 +5,14 @@ MACHINE="$(uname -m)" LIBS="bufio.om lib.om alloc.om syscall.om syscall.${MACHINE}.om" CRYPTO="ed25519.om sha512.om sha256.om chacha20.om poly1305.om aes.om rsa.om" -./cc1 -m ${MACHINE} ${LIBS} echo.om -o echo -n echo.lines -G echo.call -./cc1 -m ${MACHINE} ${LIBS} cmp.om -o cmp -n cmp.lines -G cmp.call -./cc1 -m ${MACHINE} ${LIBS} rm.om -o rm -n rm.lines -G rm.call -./cc1 -m ${MACHINE} ${LIBS} mv.om -o mv -n mv.lines -G mv.call -./cc1 -m ${MACHINE} ${LIBS} mkdir.om -o mkdir -n mkdir.lines -G mkdir.call -./cc1 -m ${MACHINE} ${LIBS} ls.om -o ls -n ls.lines -G ls.call -./cc1 -m ${MACHINE} ${LIBS} cat.om -o cat -n cat.lines -G cat.call -./cc1 -m ${MACHINE} ${LIBS} xxd.om -o xxd -n xxd.lines -G xxd.call -./cc1 -m ${MACHINE} ${LIBS} cpio.om -o cpio -n cpio.lines -G cpio.call -./cc1 -m ${MACHINE} ${LIBS} sh.om -o sh -n sh.lines -G sh.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} sshd.om -o sshd -n sshd.lines -G sshd.call +./cc1 -m ${MACHINE} ${LIBS} echo.om -o echo -n echo.lines +./cc1 -m ${MACHINE} ${LIBS} cmp.om -o cmp -n cmp.lines +./cc1 -m ${MACHINE} ${LIBS} rm.om -o rm -n rm.lines +./cc1 -m ${MACHINE} ${LIBS} mv.om -o mv -n mv.lines +./cc1 -m ${MACHINE} ${LIBS} mkdir.om -o mkdir -n mkdir.lines +./cc1 -m ${MACHINE} ${LIBS} ls.om -o ls -n ls.lines +./cc1 -m ${MACHINE} ${LIBS} cat.om -o cat -n cat.lines +./cc1 -m ${MACHINE} ${LIBS} xxd.om -o xxd -n xxd.lines +./cc1 -m ${MACHINE} ${LIBS} cpio.om -o cpio -n cpio.lines +./cc1 -m ${MACHINE} ${LIBS} sh.om -o sh -n sh.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} sshd.om -o sshd -n sshd.lines diff --git a/kernel.sh b/kernel.sh @@ -6,20 +6,20 @@ LIBS="bufio.om lib.om alloc.om syscall.om syscall.${MACHINE}.om" CRYPTO="ed25519.om sha512.om sha256.om chacha20.om poly1305.om aes.om rsa.om" BIN="echo cmp rm ls cat xxd mv mkdir cpio sh sshd init cc1" -./cc1 -m ${MACHINE} ${LIBS} echo.om -o echo -n echo.lines -G echo.call -./cc1 -m ${MACHINE} ${LIBS} cmp.om -o cmp -n cmp.lines -G cmp.call -./cc1 -m ${MACHINE} ${LIBS} rm.om -o rm -n rm.lines -G rm.call -./cc1 -m ${MACHINE} ${LIBS} mv.om -o mv -n mv.lines -G mv.call -./cc1 -m ${MACHINE} ${LIBS} mkdir.om -o mkdir -n mkdir.lines -G mkdir.call -./cc1 -m ${MACHINE} ${LIBS} ls.om -o ls -n ls.lines -G ls.call -./cc1 -m ${MACHINE} ${LIBS} cat.om -o cat -n cat.lines -G cat.call -./cc1 -m ${MACHINE} ${LIBS} xxd.om -o xxd -n xxd.lines -G xxd.call -./cc1 -m ${MACHINE} ${LIBS} cpio.om -o cpio -n cpio.lines -G cpio.call -./cc1 -m ${MACHINE} ${LIBS} sh.om -o sh -n sh.lines -G sh.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} sshd.om -o sshd -n sshd.lines -G sshd.call +./cc1 -m ${MACHINE} ${LIBS} echo.om -o echo -n echo.lines +./cc1 -m ${MACHINE} ${LIBS} cmp.om -o cmp -n cmp.lines +./cc1 -m ${MACHINE} ${LIBS} rm.om -o rm -n rm.lines +./cc1 -m ${MACHINE} ${LIBS} mv.om -o mv -n mv.lines +./cc1 -m ${MACHINE} ${LIBS} mkdir.om -o mkdir -n mkdir.lines +./cc1 -m ${MACHINE} ${LIBS} ls.om -o ls -n ls.lines +./cc1 -m ${MACHINE} ${LIBS} cat.om -o cat -n cat.lines +./cc1 -m ${MACHINE} ${LIBS} xxd.om -o xxd -n xxd.lines +./cc1 -m ${MACHINE} ${LIBS} cpio.om -o cpio -n cpio.lines +./cc1 -m ${MACHINE} ${LIBS} sh.om -o sh -n sh.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} sshd.om -o sshd -n sshd.lines for name in ${BIN}; do echo ${name}; done | ./cpio -o > initramfs -./cc1 -m ${MACHINE} kernel.${MACHINE}.om -o kernel.${MACHINE} -n kernel.${MACHINE}.lines -G kernel.${MACHINE}.call +./cc1 -m ${MACHINE} kernel.${MACHINE}.om -o kernel.${MACHINE} -n kernel.${MACHINE}.lines nasm -f bin mbr.asm -o mbr cat mbr kernel.${MACHINE} > disk diff --git a/test.sh b/test.sh @@ -4,11 +4,11 @@ MACHINE="$(uname -m)" LIBS="bufio.om lib.om alloc.om syscall.om syscall.${MACHINE}.om" CRYPTO="ed25519.om sha512.om sha256.om chacha20.om poly1305.om aes.om rsa.om" -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} chacha20_test.om -o chacha20_test -n chacha20_test.lines -G chacha20_test.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} ed25519_test.om -o ed25519_test -n ed25519_test.lines -G ed25519_test.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} poly1305_test.om -o poly1305_test -n poly1305_test.lines -G poly1305_test.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} sha256_test.om -o sha256_test -n sha256_test.lines -G sha256_test.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} sha512_test.om -o sha512_test -n sha512_test.lines -G sha512_test.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} x25519_test.om -o x25519_test -n x25519_test.lines -G x25519_test.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} aes_test.om -o aes_test -n aes_test.lines -G aes_test.call -./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} rsa_test.om -o rsa_test -n rsa_test.lines -G rsa_test.call +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} chacha20_test.om -o chacha20_test -n chacha20_test.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} ed25519_test.om -o ed25519_test -n ed25519_test.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} poly1305_test.om -o poly1305_test -n poly1305_test.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} sha256_test.om -o sha256_test -n sha256_test.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} sha512_test.om -o sha512_test -n sha512_test.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} x25519_test.om -o x25519_test -n x25519_test.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} aes_test.om -o aes_test -n aes_test.lines +./cc1 -m ${MACHINE} ${LIBS} ${CRYPTO} rsa_test.om -o rsa_test -n rsa_test.lines