| 1 |
"Spit READ_ME" |
| 2 |
Paul Boersma, 16 September 2025 |
| 3 |
|
| 4 |
How to compile spit.c |
| 5 |
===================== |
| 6 |
|
| 7 |
On the Mac: |
| 8 |
----------- |
| 9 |
|
| 10 |
cc -arch arm64 spit.c -o spit_mac_arm64 |
| 11 |
cc -arch x86_64 spit.c -o spit_mac_intel64 |
| 12 |
|
| 13 |
On Windows: |
| 14 |
----------- |
| 15 |
|
| 16 |
We must note that we cannot compile with MinGW, |
| 17 |
because we need the standard Windows CRT (C runtime), |
| 18 |
which uses GetCommandLine and CommandLineToArgv |
| 19 |
(and unfortunately also optional wildcard expansion, |
| 20 |
namely if matching files exist) before `main`. |
| 21 |
|
| 22 |
clang spit.c -o spit_win_arm64 |
| 23 |
clang spit.c -o spit_win_intel64 |