inc 0.1.2

Incremental approach to compiler construction
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
    .text
    .intel_syntax noprefix

    .globl "string-length"
"string-length":
    push rbp
    mov rbp, rsp
    mov rax, [rbp - 8]  # rax = &str + 5
    mov rax, [rax - 5]  # rax = &str
    shl rax, 3          # rax = rax * 8
    nop
    mov rbp, rsp
    pop rbp
    ret