readme cleanup

This commit is contained in:
dzaima 2022-01-08 23:31:36 +02:00
parent 5cde913c78
commit af70ffa6c8

View File

@ -12,7 +12,7 @@
- `some-other-bqn-implementation ./genRuntime path/to/mlochbaum/BQN` can be used to avoid pulling precompiled bytecode with git from `remotes/origin/bytecode`.
This creates the dummy file `src/gen/customRuntime` and will disable automated bytecode retrieval whenever it's updated.
`make clean-runtime` (or just `make-clean`) can be used to reset to the default state.
`make clean-runtime` (which is included in `make clean`) can be used to reset to the default state.
- Different build types:
- `make o3` - `-O3`, the default build
- `make o3n` - `-O3 -march=native`
@ -20,13 +20,13 @@
- `make debug` - unoptimized debug build
- `make debug1` - debug build without parallel compilation. Useful if everything errors, and you don't want error messages of multiple threads to be written at the same time.
- `make heapverify` - verify that refcounting is done correctly
- `make t=some_type clean` - clean only the specific build
- `make o3n-singeli` - a Singeli build, currently only for CPUs supporting AVX2
- `make o3n-singeli` - a Singeli build, currently only for x86-64 CPUs supporting AVX2
- `make t=some_custom_type f='-O3 -DSOME_MACRO=whatever -some_other_cc_flag' c` - custom build
Macros that you may want to define are listed in `src/h.h`.
The `some_custom_type` is used as the key for caching/incremental compilation, so make sure to `make t=some_custom_type clean` if you want to change the flags without changing the `t=` value!!
- `make single-(o3|o3g|debug|c)` - compile everything as a single translation unit. Slower for optimized builds, but may allow some more optimizations
- ... and more; see `makefile`
- A specific build type can be cleaned with `make t=some_type clean`
- Tests can be run with `./BQN path/to/mlochbaum/BQN/test/this.bqn` (add `-noerr` if using `make heapverify`).
- Test precompiled expression: `some-other-bqn-impl ./precompiled.bqn path/to/mlochbaum/BQN "$PATH" '2+2'`
- [Some implementation docs](https://github.com/dzaima/CBQN/tree/master/src#readme)