3 ms·
I don't see how the example works, it has two separate routines, neither of which does any syscalls, windows calls, interrupts, nor I/O of any kind. [also] The
by mikewarot 5y ago
I don't see how the example works, it has two separate routines, neither of which does any syscalls, windows calls, interrupts, nor I/O of any kind.
[also] The makefile calls on src/printf.hpp, which is missing.
- deleted 5y ago[deleted]
- teraflop 5y agoIt appears that the language uses "return" as a synonym for the SYSCALL x86_64 instruction: https://github.com/wellang/well/blob/main/src/syscall_interp.c https://github.com/wellang/well/blob/main/src/syscall_interp... The example code is equivalent to: write(1, "hello world!", 12); exit(0); It's basically just doing some very simple string substitution on the input, and then piping the result to the nasm assembler.