|
|
|
The lort is code that executes `main()` and provides various helper functions needed by the program.
|
|
|
|
|
|
|
|
lorts are typically written in assembly and are made specifically for the target system.
|
|
|
|
|
|
|
|
## Excerpt from x64 lort as of 2020-03-13
|
|
|
|
|
|
|
|
```
|
|
|
|
extern _main
|
|
|
|
|
|
|
|
global _start
|
|
|
|
|
|
|
|
global x64_exit
|
|
|
|
global x64_puts
|
|
|
|
global x64_putc
|
|
|
|
global x64_putnbr
|
|
|
|
|
|
|
|
section .text
|
|
|
|
_start:
|
|
|
|
call _main
|
|
|
|
x64_exit:
|
|
|
|
mov rax, 60
|
|
|
|
mov rdi, rax
|
|
|
|
syscall
|
|
|
|
``` |