Porting Questions

Dan Mick charyb!dan at uunet.uu.net
Thu Feb 8 05:25:19 AEST 1990


In article <4635 at brazos.Rice.edu> larus at spool.cs.wisc.edu writes:
>X-Sun-Spots-Digest: Volume 9, Issue 21, message 9 of 13
>
>1.  Are any of the global registers (%g1 -- %g7) available to programs?
>Or, a better question, what are these registers used for?

Some of them are off-limits to the compilers, but some are used as part of
the normal register-allocation scheme.  I haven't been able to figure out
if any are available outside the compilers, and those that are may well be
used by the kernel...I've not seen any documentation on that either.

>2.  Is there any trick to doing an unaligned load/store of a word (4 byte
>quantity)?  I can do it with a sequence of load-byte/store-byte's and
>shifts, but I find it hard to believe that this is really the best
>technique.

Nope...that's all you get.  The CPU simply doesn't have the bus mux/demux
that CISC chips, in particular Moto chips, provide.



More information about the Comp.sys.sun mailing list