You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
357 B
19 lines
357 B
4 months ago
|
# asm generated by clang from the following C code:
|
||
|
# void puts(const char*);
|
||
|
# void hello() { puts("hello\n"); }
|
||
|
|
||
|
.globl hello
|
||
|
hello:
|
||
|
.functype hello () -> ()
|
||
|
i32.const hello_str
|
||
|
call puts
|
||
|
end_function
|
||
|
|
||
|
.section .rodata.hello_str,"",@
|
||
|
.globl hello_str
|
||
|
hello_str:
|
||
|
.asciz "hello\n"
|
||
|
.size hello_str, 7
|
||
|
|
||
|
.functype puts (i32) -> ()
|