update readme
This commit is contained in:
parent
b2b826be9b
commit
17fa05d23a
18
README.md
18
README.md
@ -1,17 +1,15 @@
|
||||
build/run:
|
||||
|
||||
1. `./genRuntime path/to/mlochbaum/BQN`
|
||||
2. optionally choose what to build by changing `src/main.c`
|
||||
3. `./build` (or `./debugBuild` for a quicker unoptimized build)
|
||||
4. `./BQN`
|
||||
2. Optionally choose what to build by changing `src/h.h`
|
||||
3. `make`
|
||||
- Options are: `make o3`, `make debug`, `make rtperf`
|
||||
- Do `make clean` or `make [o3|debug|rtperf]-clean` before to force recompile
|
||||
- `./build` and `./debugBuild` compile everything at once and allow specifying extra compiler arguments, but may be slower
|
||||
4. `./BQN` (or `rlwrap ./BQN` for a fancier interface)
|
||||
|
||||
Time safe prim tests with self-hosted compiler:
|
||||
Time safe prim tests with self-hosted compiler: `./test.bqn ~/git/BQN -s prim > SP; time ./BQN<SP>/dev/null`
|
||||
|
||||
`time ./test.bqn path/to/mlochbaum/BQN -s prim | ./BQN`
|
||||
|
||||
Test precompiled safe prim tests:
|
||||
|
||||
1. uncomment [this](https://github.com/dzaima/CBQN/blob/528279b8e3e0fb108868f47b7bdfe772c26f10c3/src/main.c#L101-L106)
|
||||
2. `./precompiled.bqn path/to/mlochbaum/BQN "$PATH"`
|
||||
Test precompiled expression: `./precompiled.bqn path/to/mlochbaum/BQN "$PATH" '2+2'`
|
||||
|
||||
Any file without an explicit copyright message is copyright (c) 2021 dzaima, GNU GPLv3 - see LICENSE
|
||||
@ -13,8 +13,8 @@ tests ← •FLines path∾"/test/cases/prim.bqn"
|
||||
('#'≠ ·⊑ ∾⟜"#")◶@‿{
|
||||
'%'⊸∊◶{𝕤
|
||||
•Out 𝕩
|
||||
"src/interp" •FChars ⟨1,path,𝕩⟩ •Import "cc.bqn"
|
||||
(×⊑)◶@‿{𝕤⋄•Out "############ Failed to compile! ############" ⋄ •Out¨1↓𝕩}{env⇐<"PATH="∾envP}•SH"./debugBuild"
|
||||
"src/gen/interp" •FChars ⟨1,path,𝕩⟩ •Import "cc.bqn"
|
||||
(×⊑)◶@‿{𝕤⋄•Out "############ Failed to compile! ############" ⋄ •Out¨1↓𝕩}{env⇐<"PATH="∾envP}•SH"./debugBuild"‿"-DNO_COMP"
|
||||
code‿out‿err←•SH"./BQN"
|
||||
•Out out
|
||||
{𝕤⋄•Out"exit code "∾(⍕code) ⋄ •Out err}⍟(×code) err
|
||||
|
||||
@ -168,6 +168,7 @@ static inline void load_init() {
|
||||
#ifdef NO_COMP
|
||||
Block* c = load_compObj(
|
||||
#include "gen/interp"
|
||||
, bi_N
|
||||
);
|
||||
B interp = m_funBlock(c, 0); ptr_dec(c);
|
||||
print(interp);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user