CS153/hw6/llprograms/helloworld.ll
jmug 0c04936ccf Updated hw6 to a newer version
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-24 21:23:08 -08:00

9 lines
222 B
LLVM

declare void @ll_puts(i8*)
@gstr = global [14 x i8] c"hello, world!\00"
define i64 @main(i64 %argc, i8** %argv) {
%1 = getelementptr [14 x i8], [14 x i8]* @gstr, i32 0, i32 0
call void @ll_puts(i8* %1)
ret i64 0
}