compiler/
lib/
examples/
std/
arch/
collections/
lang/
sys/
arch.rad
65 B
collections.rad
36 B
fmt.rad
3.8 KiB
intrinsics.rad
399 B
io.rad
1.2 KiB
lang.rad
222 B
mem.rad
2.1 KiB
sys.rad
167 B
testing.rad
2.3 KiB
tests.rad
11.6 KiB
vec.rad
3.1 KiB
std.rad
231 B
scripts/
seed/
test/
vim/
.gitignore
353 B
.gitsigners
112 B
LICENSE
1.1 KiB
Makefile
3.0 KiB
README
2.5 KiB
std.lib
1.0 KiB
std.lib.test
252 B
lib/std/intrinsics.rad
raw
| 1 | //! Compiler intrinsics. |
| 2 | |
| 3 | /// Environment call. |
| 4 | /// |
| 5 | /// Issues a system call with the given number and arguments. |
| 6 | /// Arguments and the return value are `i64` to support both 32-bit |
| 7 | /// emulator addresses and 64-bit native (AMD64) pointers. |
| 8 | @intrinsic pub extern fn ecall(number: u32, arg1: i64, arg2: i64, arg3: i64, arg4: i64) -> i64; |
| 9 | |
| 10 | /// Break out of program. |
| 11 | @intrinsic pub extern fn ebreak(); |