🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Kevin Cameron Fri, 06 Nov 1992 17:37
Available Registers (Sparc/RS6000/DecStation etc)
#576
Author: Kevin Cameron
Date: Fri, 06 Nov 1992 17:37
31 lines
1165 bytes
I am using registers g4-g7 on sparc (instead of global memory) using the
following macros:


	#ifdef __GNUC__
	#ifdef sparc
	# define REGISTER_0(decl) register decl asm ("g4")
	# define EXT_REG_0(decl)  register decl asm ("g4")
	...
	#endif
	#endif

	....

	ifndef REGISTER_0
	# define REGISTER_0(decl) decl
	# define EXT_REG_0(decl)  extern decl
	#endif


I was wondering if anyone new which registers are reliably usable on an RS6000,
or a DecStation 3100 (or any other machines). 

Thanks,
Kev.
-- 
Kevin Cameron          CLSI, Suite 100, 5457 Twin Knolls Rd., MD 21045, USA
kevin@clsi.com         Tel: (USA) (410) 992 5700 (- 5709) X224
uunet!clsi.com!kevin   Fax:       (410) 992 3536
----------------------------------------------------------- Reality Is virtual
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads