From: gregh@cserver.plexus.com (Greg Hawley)
Subject: 68k cross compiler (Was: GCC cross compiler MSDOS --> 68k question)
Keywords: GCC MSDOS 68000 cross compiler help
Organization: Plexus Corp. -- Neenah Wisconsin
Date: Tue, 17 Nov 1992 17:54:56 GMT

tom@afthree.as.arizona.edu (Thomas J. Trebisky) writes:

>4bclass@bode.uwaterloo.ca (Elec/CompEng '92  Alumni) writes:
>>Hello everyone,

>>I am certain that someone out there has built a full GCC-based cross
>>compiling environment hosted on an MSDOS machine and with a 68k target.

>>I am looking for a fully compiled and built system to save me some time
>>in doing this myself.

>>Would you please email me info on where such a beast can be obtained.  I
>>appologize if this question has been asked before, but I just started
>>reading this newsgroup.

>OK, all kidding aside, I am not too optimistic about this.  I embarked
>on an attempt to do this some time ago with gcc 1.39 and hit the following
>barriers:

>	The version of the Microsoft compiler I had then (4.0) was
>	(to be polite) sadly lacking.  The gnu folks love to use run-on
>	variable and function names like "expression_in_progress_now()"
>	and such.  Microsoft cc chopped these to 6 or 8 characters which
>	led to lots of nasty clashes.  Some other compiler gagging problems
>	popped up that I forget the details of.  Some really gigantic
>	.h files were choking the compiler as I remember.


>If you are determined, it could probably be done with one of the new
>compilers (like Zortech C for the 386) that generate native mode code.
>I agree it would be a nice thing. Another possibility is that this post
>will bring someone out of the bushes to prove me wrong.

>Best of luck -- my problems were solved by setting up a cross compiler
>on a sun sparcstation, and then later by acquiring my 3b1 and using it
>for cross development -- I have a spare, wanna buy a cheap 3b1?

A couple things:

	1.  This newsgroup desperately needs an FAQ.  It needs one
	    so badly, I feel like writing it myself.  What do others
	    think?  Send mail with your thoughts.

	2.  I have a cross compiler running on my PC.  What I did was
	    get the Sorobon C compiler for the Amiga and compiled it
	    with Turbo C.  No problems.  I also grabbed the assembler,
	    and optimizer.  Use archie to search for hcc, and a68k.
	    The optimizer comes with the compiler.  You will need
	    lharc to uncompress them (again see archie for your nearest
	    anonymous ftp site).  My current problem (and I point to
	    Amiga users for this question) is where can I get the
	    source for the linker, BLink?  If I don't hear, I can
	    of course call the source of BLink, but I'm lazy :-).
	    As HCC and top (the optimizer) generate relocatable code, 
	    I need to user BLink to link the code and then something 
	    to generate Motorola S-records for my PROM burner.

So there.

---Greg
+---------------------------+----------------------------+-----------------+
|  __     __          ___   |  Greg Hawley               |  Expressed      |
| /  \|  /   \ / |  | \     |  Technology Group Inc.     |  Opinions are   |
| +--/|  +--  X  |  |  \    |  55 Jewelers Park Drive    |  mine and not   |
| |   \__\__ / \ \__/ __\   |  Neenah WI 54956           |  of Technology  |
|                           |  gregh@cserver.plexus.com  |  Group Inc. or  |
|  Technology Group Inc.    |  414-722-8748              |  Plexus Corp.   |
+---------------------------+----------------------------+-----------------+