omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / bridge / omega-bridge / tests / native / macos / hostw.om
| 1 | note A function-mode unit with a host word: its write is a Linux system call (svc) made by the code itself. |
| 2 | note The generated C must refuse to build on macOS, which numbers system calls differently. |
| 3 | fn hostw x ulong to ulong |
| 4 | b = new uchar 4 65 |
| 5 | n = write 1 b 0 1 |
| 6 | ret add x ulong n |
| 7 | end |