Path: utzoo!utgpu!watserv1!watmath!att!rutgers!uwm.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!rice!sun-spots-request From: icw@sam.cs.cmu.edu (I-Chen Wu) Newsgroups: comp.sys.sun Subject: Questions about SPARC's C compiler Keywords: Software Message-ID: <8481@brazos.Rice.edu> Date: 2 Jun 90 03:57:30 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 16 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 198, message 5 1. When I check some assembly codes, I realize global registers, g0, g1,...,etc, are rarely used. Could I insert, say, asm("move %o5, %g2") into the C programs? Any side effect? 2. In addition, could I move address of a C variable into a specific register? For example, routine() { int i; asm ("move ADDR(i), %g2"); /* move address of i to g2 */ .... } Thank you in advance. I-Chen Wu