Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sample SPARC asm code... does this make sense?

Status
Not open for further replies.

sparcasm

Programmer
Oct 10, 2002
1
0
0
US
hello all. first post and i am a newbie. SPARC architecture using m4 and gcc and i'm trying to define a function that i can call to write text to the screen:
define(print_string, `set $1, %o0
call printf
nop')
then.. in my other program:
*/header*/
include(above_file)
define(sample_text, `test')
.......(blah blah .global etc...)
print_string(sample_text)

this doesn't work for me, so any tips? thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top