🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #1593

Generating Mac C code from a SUN?

#1593
From: guido
Date: Mon, 03 Jun 1985 01:06
28 lines
1841 bytes
Just a little idea that just popped up in my mind.  We are currently using
the SUMacC cross compiler to compiler C programs that must run on the Mac.
This compiler has some disadvantages (I have been bitten by a few nasty
bugs these weeks: variables named sp or pc, a function called fix, and
the last-declared local variable in a large function got trashed).
We also have a few SUN workstations running 4.2BSD Unix that are almost
idle.  These have a (I suppose) superior C compiler, which of course
generates 68000 code.  So in principle the SUN could cross-compile for
the Mac.

Questions:
- has anyone tried this?
- are there differences in subroutine linkage conventions between the
  compilers?
- how much work would it be to translate the SUMacC assembly sources
  for the SUN assembler?
- would there be legal problems in using the SUN's compiler to generate
  code for non-SUN machines?  (I can't believe this.  Do there have to be
  legal problems for *everything* concerning two or more computers?)

If I receive interesting replies (positive or negative), I'll summarize to
the net.  Thanks in advance!

Send replies to:

	Guido van Rossum, CWI, Amsterdam
	guido@mcvax.UUCP (a path to mcvax is known by most backbone sites)
Technical Details
Message-ID: <6438@boring.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!boring!guido

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC840302); site boring.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!boring!guido
From: guido@boring.UUCP
Newsgroups: net.micro.mac
Subject: Generating Mac C code from a SUN?
Message-ID: <6438@boring.UUCP>
Date: Sun, 2-Jun-85 21:06:34 EDT
Article-I.D.: boring.6438
Posted: Sun Jun  2 21:06:34 1985
Date-Received: Mon, 3-Jun-85 04:38:49 EDT
Reply-To: guido@mcvax.UUCP (Guido van Rossum)
Organization: CWI, Amsterdam
Lines: 27
Apparently-To: rnews@mcvax.LOCAL