🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41940

gnu gcc for MPW/Mac !...???

#41940
From: NYHOLKU
Date: Sat, 03 Feb 1996 00:00
76 lines
3285 bytes
Dear anybody out there,

I'm trying to get the gnu C-compiler to work in MPW and stumbled to
THIS IS PRE-RELEASE 12 OF MPW GCC 2.3.3 (which was fortunate) but
I was unable to install it succesfully (which was less fortunate)!

My goal is to get a cross compiler for the Siemens 80C166 processor so
that we can keep doing software development in MPW for our embedded
systems and don't have switch to Wintel platforms. GNU seemed like a
possible solution because I was unable to find a commercial product
for this purpose (currenlty we are using Introl-C for MPW to do
development for the 68HC11 processor which is used extensively here,
but
it is aging fast).

Any way, I downloaded GCC2.3.3 for MPW succesfully unzipped it etc.
After relocating 'bison.simple' to the proper place and creating a
'tools' directory with 'gcc_driver' inside it, I was able to run
the installgcc -target Mac58k script. BUT...

In file ':sources:explow.c' the 'GO_IF_LEGITIMATE_ADDRESS' macro
expands
to a line longer than 255 characters and the MPW C chokes on it!

After seeing this problem in several other files I switched over to
Symantec C and after tinkering with makefiles and options a while, I
was
able to compile it all. BUT...

The gC seems to chars very easily (I havent yet tampered with the MPW
stack
size,
maybe thats the problem , I'll do it next) and so far haven't been able
to compile any programs with it.

Questions:

1. How come I can't compile gcc with my MPW system, my system comes
from
E.T.O. / MPW Pro #15 and the versions are
C               V3.3.3
Link    3.3.2
asm             3.3.1
MPW     3.3.1

Specific problems:
1.1 Macros expand to too long lines.
1.2 Without the '-model farCode' option I was not able to link some
of the tools, how did you do it???

2. Could the problem be with the 'Symantec C'? Symantec did not swallow
the sources without some slight modification even with the '-Jw' option
that is supposed to make it more forgiving. Specially it did not like
the redefiniton of 'errno' because somewhere it was defined as volatile
and the repetition was not. Also Symatec required SANE libraries
because
the linker could not find the 'scalb' funktion.

3. Do you know of a port for gnu-c for Siemens 80C166?

4. I haven't yet read through ALL the documentation, but is there
enough information in those files to port the compiler to another
prosessor (it is a standalone application with no OS around so
libraries and system calls are no problem)? I not, do you know
where I can dig out for more information?


yours,
        Kustaa Nyholm
        Software Design Manager
        Planmeca Oy (the manafacturer of dental units and xrays)

P.S.

I tried to send this to mpwgcc@apple.com but apparently it is no longer
valid.
Technical Details
Message-ID: <4evicb$gih@idefix.eunet.fi>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,70698a9387afcc12,start
X-Google-Attributes: gid11318c,public
From: nyholku@planmec.pp.fi (NYHOLKU)
Subject: gnu gcc for MPW/Mac !...???
Date: 1996/02/03
Message-ID: <4evicb$gih@idefix.eunet.fi>
X-Deja-AN: 137869859
sender: -Not-Authenticated-[3982]
xdisclaimer: No attempt was made to authenticate the sender's name.
x-posted-from: InterNews 1.0.2@planmec.pp.fi
newsgroups: gnu.gcc.help