Skip to content

Commit

Permalink
Simplify USAGE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
simonlindholm committed Oct 6, 2022
1 parent d12168d commit c6ec49f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@ does all this for you. See README.md for more details.
* optionally create a toml file at `<dir>/settings.toml` (see `example_settings.toml` for reference)
* `gcc -E -P -I header_dir -D'__attribute__(x)=' orig_c_file.c > <dir>/base.c`
* `python3 strip_other_fns.py <dir>/base.c func_name`
* put asm for `func_name` into `<dir>/target.s`, with the following header:

```asm
.set noat
.set noreorder
.set gp=64
.macro glabel label
.global \label
.type \label, @function
\label:
.endm
```
* put asm for `func_name` into `<dir>/target.s`, together with the header from `prelude.inc`
* `mips-linux-gnu-as -march=vr4300 -mabi=32 <dir>/target.s -o <dir>/target.o`
* optional sanity check:
- `<dir>/compile.sh <dir>/base.c -o <dir>/base.o`
Expand Down

0 comments on commit c6ec49f

Please sign in to comment.