Skip to content

Commit 19b3947

Browse files
authored
Suggestions (#1)
* Update main.s - replaced .asciz with .ascii to avoid an additional zero byte allocation - removed unnecessary section headers not needed by linker - added extern section for importing sol_log_ * Update main.s removed leading . * Update main.s Seems we don't need the extern declaration after all!
1 parent 81c111c commit 19b3947

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

helloworld/asm/main.s

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
.text
2-
.globl entrypoint
1+
.globl entrypoint
32
entrypoint:
43
lddw r1, .message
54
mov64 r2, 12
65
call sol_log_
76
exit
8-
.section .rodata
9-
.message:
10-
.asciz "Hello world!"
7+
.rodata
8+
message: .ascii "Hello world!"

0 commit comments

Comments
 (0)