[comp.sys.transputer] GNU C compiler

andy@snowwhite.UUCP (Andy Pfiffer) (06/30/88)

I took a look at GNU C and making a code generator for Transputers late last
year.  Unfortunately (it may be much better now), the GNU C compiler thinks
in terms of registers and the Transputer doesn't have registers like other
"conventional" microprocessors like a 680x0.

I suppose one could put together a code generator very quickly that was
purely memory-to-memory transfers, but that would be very ineffcient on
a Transputer.

The other immediate alternative that came to mind was using the first 16
words off the workspace pointer as "registers."  That would greatly
improve the quality of the code, but then great pains would have to be taken
to insure that the 3 deep register stack never overflowed in the midst of
calculating an expression.



	Porting away,

	Andy


--
Andy Pfiffer			  Topologix, Inc. (303) 421-7700
Trillium Diving Team              4860 Ward Road / Denver, CO 80033
            "...that's the way a Transputer works, right?"