Greetings all. Having problem trying to compile and run this "hello, wold" .s code in sparc UNIX 64bit environment and got $: "hello.s", line 1: error: invalid character (0xef) and etc. on other lines and addresses. Thought it was ANSI UTF issues, changed and saved and tried both types. Then tried to save file with ECO conversion to UNIX and still hit errors.
Compiled with: gcc -o hello hello.s
.data
.align 4
string: .ascii "Hello, World!\n"
.text
.align 4
.global main
main:
mov 1,%o0
set string,%o1
mov 14,%o2
mov 4,%g1
ta 0
mov 0,%o0
mov 1,%g1
ta 0
Great forum!!