public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: m68k MacOS target support?
@ 2000-09-12 18:43 Michael Sokolov
  2000-09-12 19:44 ` Stan Shebs
  2000-09-13  8:40 ` Joe Buck
  0 siblings, 2 replies; 30+ messages in thread
From: Michael Sokolov @ 2000-09-12 18:43 UTC (permalink / raw)
  To: binutils, gcc

David Huggins-Daines <dhd@linuxcare.com> wrote:

> I do find it sad that we require a highly non-free
> compiler [...]
>
> [...] And the
> gratis MPW compilers really suck compared to GCC (no inline assembly,
> etc, so on).

I can't say anything for sure until I get the sources for Stan Shebs' two ports
and get answers to the questions about the C library and the headers, but it
looks like as the m68k port maintainer I'll be able to create a UNIX-hosted
MacOS-targeting port with very little additional work beyond what I would have
to do anyway for other projects that interest me, and thus it would be
imprudent for me as the m68k port maintainer not to do so. This port would be
very good from the GNU viewpoint (full proper current GCC and Binutils), but
would do very little from the Mac viewpoint other than letting you call MacOS
APIs yourself with no involvement from the compiler. I would use Cygnus Newlib,
and all of its free-standing embedded functionality would be fully working,
which is great, but not being a Mac programmer and having no interest in the
actual Mac business, I'm the wrong guy to ask for things like implementing
UNIX-like open, read, write, console I/O, etc. on top of MacOS or for hosting
on MacOS.

I wonder, how would this compare to what most proprietary Mac compilers offer
in terms of the C library? (I'm not a Mac person and have never used any, so I
don't know.) Do they offer free-standing functions that are better or worse
than Cygnus Newlib? Do they offer open, read, write, etc. on top of the MacOS
filesystem?

In any case this would be a start that other interested people can build upon,
while being self-contained and complete enough to be checked into the mainline
source (in the m68k-specific subdirectories, so that the m68k port maintainer's
authority is enough without bugging the higher-up maintainers).

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: m68k MacOS target support?
@ 2000-09-13  8:49 Michael Sokolov
  0 siblings, 0 replies; 30+ messages in thread
From: Michael Sokolov @ 2000-09-13  8:49 UTC (permalink / raw)
  To: binutils, gcc

Joe Buck <jbuck@racerx.synopsys.com> wrote:

> The MAINTAINERS file in the GCC distribution lists who the maintainers
> are for various aspects of GCC, and your name does not appear.

I've said clearly I think that I'm *running* for the m68k maintainer. I say "as
the m68k maintainer I will..." the same way Bush and Gore say "as the President
of the U.S. I will..." :-)

> Jeff
> Law is listed as maintainer for the m68k port [...]

With a question mark. When I asked him what he meant by that, he said that he
would be willing to pass the maintainership to someone who would actually be
working on that port.

Since the beginning of year 2000 I have been the only one making any
enhancements to the m68k port in the Cygnus tree. So far all my enhancements
have been in Binutils modules, but I'll get into the gcc module soon too.

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: m68k MacOS target support?
@ 2000-09-12 18:18 Michael Sokolov
  0 siblings, 0 replies; 30+ messages in thread
From: Michael Sokolov @ 2000-09-12 18:18 UTC (permalink / raw)
  To: binutils, gcc

Richard Henderson <rth@cygnus.com> wrote:

> The "macunpack" program from the "macutils" package distributed by
> Red Hat, Debian, and others should unpack things for you.

The terms "package", "Red Hat", and "Debian" assume Linux I suppose. Is there
anything for UNIX, in source form?

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: m68k MacOS target support?
@ 2000-09-12 18:08 Michael Sokolov
  0 siblings, 0 replies; 30+ messages in thread
From: Michael Sokolov @ 2000-09-12 18:08 UTC (permalink / raw)
  To: binutils, gcc

Michael Meissner <meissner@cygnus.com> wrote:

> I seem to recall discussion about the VAX
> and GCC working on pristine BSD 4.3 in the last 2 months.

That is correct, VAXen are my *only* computers, and they all run 4.3BSD. So far
the only version of GCC I've got working here is gcc-2.95.3 (the current state
of the -rgcc-2_95-branch in CVS) targeting m68k-coff. A native build didn't
work. It seems to me that there are some problems in the vax port and I would
be better off fixing them in 2.96 than in 2.95.3, so I didn't pursue that
further. I haven't got around to playing with the current 2.96 yet, neither
native nor cross.

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: m68k MacOS target support?
@ 2000-09-12 17:57 Michael Sokolov
  2000-09-12 18:12 ` Richard Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Michael Sokolov @ 2000-09-12 17:57 UTC (permalink / raw)
  To: binutils, gcc

Stan Shebs <shebs@apple.com> wrote:

> I did three MacOS ports of GCC in all.

OK, so if I understood you correctly, you've made two m68k MacOS-targeting
compilers, one based on gcc-1.37 and the other on gcc-2.3.3, and both were only
hosted on MPW (no cross-compilation to m68k MacOS from UNIX) using the MPW
assembler and linker, right? You've never ported your own m68k MacOS assembler
or linker, right?

But what did you use for the C library? And what header files? Apple's own? Did
you make gcc grok the awful syntax they use (pascal qualifier on declarations,
the "= {word, word, ...}" thingy for inlining, etc), or did you patch them into
a saner syntax?

> All three of these versions used to be at Cygnus' ftp site, presumably
> they're still there [...]

OK, I've found your two m68k ports in ftp.cygnus.com:/pub/mac/m68k, but they
are Mac self-extracting archives as far as I could tell. Could you please
provide the sources in .tar.gz format? (After all, the GPL does require the
source to be available in a machine-readable form. For a UNIX program I'd say
this implies a UNIX-readable format. gcc is originally a UNIX program, and
while a fork can be made for a different system, I think the original UNIX-
based developers have a natural right to see the source in a UNIX-readable form
for possible integration into the mainline.)

I don't have any Macs myself and I'm not a Mac user or programmer. In fact, I
myself don't even have any personal instrest in Macs. I do, however, have a
very strong interest in the mainline toolchain m68k port, and I want it to be
able to target as many m68k systems as possible, especially when I can do it
with very little effort (I mean extra effort beyond what I would need for other
projects anyway) and when it's already done by forked versions, even if the
target system is not a personal interest of my own.

> [...] the PalmOS GCC port has little in common with the old Mac ports [...]

A little clarification is in order. If by "the PalmOS GCC port" you mean the
kludge that exists right now, I have nothing to do with that. I have a
completely different standpoint. I am concerned with the mainline toolchain
m68k port overall and things that are synergistically integrated into it. I
have no interest in kludges like the PalmOS GCC in PRC-Tools. I want to
maintain the m68k port in the mainline toolchain (and I mean really maintain
the m68k port, in its original focus on m68k UNIXes and pure embedded systems,
rather than make it MacOS- or PalmOS-centric), and integrate things like MacOS
and PalmOS with as little impact as possible.

> [...] it's not worth spending much time worrying about m68k Mac support in
> current GCC.

I value your opinion, but this decision will be ultimately up to me when I
maintain the m68k port. See above for my stand on this.

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: m68k MacOS target support?
@ 2000-09-12  8:11 Richard Kenner
  0 siblings, 0 replies; 30+ messages in thread
From: Richard Kenner @ 2000-09-12  8:11 UTC (permalink / raw)
  To: mark; +Cc: gcc, lars

    That sounds helpful.  Those kind of generic changes are probably
    welcome -- especially if they don't add much maintenance overhead, and
    if there are other architectures that have similarly unusual pointer
    formats.  (I don't know whether there are such beasts or not,
    honestly).

I suspect my feeling is the same as yours.  I don't *necessarily* see
these as useful for other architectures, but fell that adding support
for this, if done cleanly, is likely to be a worthwhile addition to
GCC since it may produce a level of abstraction in the handling of
pointers that might make *other* things easlier down the road.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* m68k MacOS target support?
@ 2000-09-09 12:33 Michael Sokolov
  2000-09-11 20:47 ` Stan Shebs
  0 siblings, 1 reply; 30+ messages in thread
From: Michael Sokolov @ 2000-09-09 12:33 UTC (permalink / raw)
  To: binutils, gcc

Hi there,

As I'm doing some major work on the m68k target in the Cygnus toolchain and
going to maintain it (it's currently unmaintained), I wanted to survey the
state of target support for one rather major m68k system: MacOS. I don't see
any in the mainline public tree. In ftp.cygnus.com:/pub/mac I see an old (1996)
port of the toolchain to MPW. It mentions an m68k MacOS compiler, but doesn't
contain one. I have also heard from multiple sources that Stan Shebs of Apple
has developed and might still be maintaining an m68k MacOS compiler.

Stan, are you reading this? Would you please fill me in on the state of various
port(s) for the m68k MacOS target? Is there or has there ever been more than
one? Is yours related to the one in ftp.cygnus.com:/pub/mac or not? What is the
current status of the various port(s) (maintained, unmaintained, etc)? Where
can I find the sources? Are you or is anyone else planning on integrating any
m68k MacOS target support into the mainline Cygnus toolchain? TIA for filling
me in on this.

(And yes, I'm fully aware of m68k MacOS' peculiarities with respect to
executable code living in code resources instead of COFF/ELF executables, A5-
based data access, segmentation, etc. One reason I'm so interested in this is
that I'm integrating into the mainline Cygnus toolchain target support for
PalmOS, another m68k system with some very similar characteristics.)

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2000-09-13  8:49 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-12 18:43 m68k MacOS target support? Michael Sokolov
2000-09-12 19:44 ` Stan Shebs
2000-09-13  8:40 ` Joe Buck
  -- strict thread matches above, loose matches on Subject: below --
2000-09-13  8:49 Michael Sokolov
2000-09-12 18:18 Michael Sokolov
2000-09-12 18:08 Michael Sokolov
2000-09-12 17:57 Michael Sokolov
2000-09-12 18:12 ` Richard Henderson
2000-09-12 18:19 ` Geoff Keating
2000-09-12 19:05 ` Stan Shebs
2000-09-12  8:11 Richard Kenner
2000-09-09 12:33 Michael Sokolov
2000-09-11 20:47 ` Stan Shebs
2000-09-11 20:56   ` Michael Meissner
2000-09-11 21:33     ` Mark Mitchell
2000-09-12  0:02       ` lars brinkhoff
2000-09-12  0:15         ` Mark Mitchell
2000-09-12  3:26           ` lars brinkhoff
2000-09-12  7:23             ` Mark Mitchell
2000-09-12 11:16           ` Joe Buck
2000-09-12 11:22             ` Bernd Schmidt
2000-09-12 20:11               ` Mark Mitchell
2000-09-12 13:59             ` Stan Shebs
2000-09-12 17:55               ` Richard Henderson
2000-09-12 19:12                 ` Stan Shebs
2000-09-13  3:17                 ` Joseph S. Myers
2000-09-12 11:48           ` Toon Moene
2000-09-12  7:32         ` Jeffrey A Law
2000-09-12  0:03       ` lars brinkhoff
2000-09-12  9:52   ` David Huggins-Daines

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).