update README

This commit is contained in:
Gautham 2023-10-10 09:46:35 -05:00
parent 6b540df45d
commit f81a13d73d

View file

@ -34,6 +34,9 @@ make -j MODE= toolchain
make -j MODE=aarch64 toolchain make -j MODE=aarch64 toolchain
export COSMO=$(realpath ./) export COSMO=$(realpath ./)
cd .. cd ..
mkdir cosmos
export COSMOS=$(realpath ./cosmos)
$COSMO/bin/cosmocc --update
``` ```
Then clone this repo Then clone this repo
@ -74,6 +77,7 @@ cargo +nightly build --target=./aarch64-unknown-linux-cosmo.json
```bash ```bash
# look at the built debug binaries # look at the built debug binaries
ls ./target/x86_64-unknown-linux-cosmo/debug/*.com.dbg ls ./target/x86_64-unknown-linux-cosmo/debug/*.com.dbg
ls ./target/aarch64-unknown-linux-cosmo/debug/*.com.dbg
# apelink # apelink
MODE= MODE=
@ -92,8 +96,8 @@ apelinkpls () {
} }
apelinkpls ./hello.com\ apelinkpls ./hello.com\
./target/x86_64-unknown-linux-cosmo/debug/hello_world.com.dbg\ ./target/x86_64-unknown-linux-cosmo/debug/hello.com.dbg\
./target/aarch64-unknown-linux-cosmo/debug/hello_world.com.dbg ./target/aarch64-unknown-linux-cosmo/debug/hello.com.dbg
# run the APE # run the APE
./hello.com ./hello.com