From dc51a4f82560f186d820ba02c03fec715f4582ec Mon Sep 17 00:00:00 2001 From: Gers2017 Date: Thu, 4 May 2023 18:06:57 -0600 Subject: [PATCH] docs(README.md): Update README --- README.md | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 33411f5..b0ed6b8 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,34 @@ Because I had no other choice. ```sh # node main.js .cpp -node main.js main.cpp # compiles a main.cpp file to rust +# compiles main.cpp to main.rs +node main.js main.cpp + +# compiles main.cpp to main.asm +# run node main.js --target list for valid targets +node main.js main.cpp --target x86_64-fasm-linux-gnu + +# for more details +node main.js --help ``` -## Test rust code +## Makefile + +Build main.rs and run + +```sh +make build-rs +make run +``` + +Build main.asm and run + +```sh +make build-fasm +make run-fasm +``` + +## Test rust code manually ```sh # rustc .rs -o .out @@ -28,7 +52,7 @@ rustc main.rs -o main.out ## Support - [ ] `//` comments -- [ ] `printf("...");` +- [ ] `printf("...");` it doesn't support more arguments (`printf("%d", 10)` doesn't work) - [ ] `return` ```cpp