program testapp {
section module {
}
section data {
int rax = 0
string str_0 = "hello "
string str_1 = " world"
string fmt_str = "%s "
string newline = "\n"
}
section code {
start:
call PROC_test
done
function PROC_test:
print fmt_str, str_0
print newline
call PROC_test_sub
PROC_END_test:
ret
function PROC_test_sub:
print fmt_str, str_1
print newline
PROC_END_test_sub:
ret
}
}