Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GCC port to cross compile for 8-bit platforms

362 views
Skip to first unread message

Mark A. Barclay

unread,
Apr 11, 1999, 3:00:00 AM4/11/99
to
I'm considering porting GCC to cross compile for 8-bit platforms like
Z80/Z180. Is this a stupid idea or what? Has anyone done this before?

--
Mark A. Barclay (mbar...@wwa.com -- http://www.wwa.com/~mbarclay)
===================================
Work like you don't need the money,
Love like you've never been hurt,
Dance like no one is watching.

William Craig

unread,
Apr 11, 1999, 3:00:00 AM4/11/99
to
This is an ok idea but you might want to look at the LCC compiler
system. We did a port to an accumulator based micro and
GCC did not like it at all. LCC was much easier to get to
generate code for accumulator models.
You can still use GCC for the back end to fit with all the
cool tools.

Greg Holdren

unread,
Apr 11, 1999, 3:00:00 AM4/11/99
to
Mark A. Barclay <mbar...@wwa.com> wrote:
: I'm considering porting GCC to cross compile for 8-bit platforms like
: Z80/Z180. Is this a stupid idea or what? Has anyone done this before?

Been Done. Look at the following page. It is a Gameboy C compiler
for a psudo Z80 like CPU. It was derived from the normal Z80
compiler (GCC). So it exist. Ask Pascal Felber were the original
Z80 GCC compiler is or change the GB compiler. Well, looking at
the web page now, it states the way GBDK (compiler) is set up
that it can target the pure Z80.

http://www.aracnet.com/~pfelber/GBDK/


--
Greg Holdren
gr...@wx.rose.hp.com


Benedikt Huber

unread,
Apr 12, 1999, 3:00:00 AM4/12/99
to
Hi,

Somebody has ported GCC to the atmel avr
microcontroller architecture

look at http://medo.fov.uni-mb.si/mapp/

"Mark A. Barclay" wrote:
>
> I'm considering porting GCC to cross compile for 8-bit platforms like
> Z80/Z180. Is this a stupid idea or what? Has anyone done this before?
>

David B. Thomas

unread,
Apr 12, 1999, 3:00:00 AM4/12/99
to
>>>>> "m" == Mark A Barclay <mbar...@wwa.com> writes:

m> I'm considering porting GCC to cross compile for 8-bit
m> platforms like Z80/Z180. Is this a stupid idea or what? Has
m> anyone done this before?

While we're at it, has anybody got gcc targeting Microchip PIC?

Thanks...
David

Tommy Thorn

unread,
Apr 12, 1999, 3:00:00 AM4/12/99
to
William Craig <bcr...@nshore.com> writes:
> This is an ok idea but you might want to look at the LCC compiler
> system. We did a port to an accumulator based micro and
> GCC did not like it at all. LCC was much easier to get to
> generate code for accumulator models.
> You can still use GCC for the back end to fit with all the
> cool tools.

While I absolutely agree in the case of general C, there are
situations where I need GCC. Unfortunately only GCC support a number
of Really Nice extension, some of which are essential for decent
performance in certain applications (eg, the computed goto).

On the other hand, my experience with the GCC port for 68HC11
(http://www.irisa.fr/prive/thorn/ante.html) have definitely convinced
me that LCC is better suited for this purpose. BTW, has anyone done a
68HC11 port of LCC?
--
/Tommy

Mike

unread,
Apr 12, 1999, 3:00:00 AM4/12/99
to
This has been discussed quite a bit on the PIC mailing list. The
conclusion was that GCC just isn't suited to the PIC's architecture (e.g.
next to no stack) and that getting it to work is going to be more work than
writting one from scratch. A guy from HiTech said that of all the cross
compilers they sell, the PIC complier was by far the most complex, due to
the many variants with slightly different memory maps etc.

Regards

Mike RJ

David B. Thomas <dth...@rt66.com> wrote in article
<uiub1y...@rt66.com>...

a...@halcyon.com

unread,
Apr 12, 1999, 3:00:00 AM4/12/99
to
The GBDK compiler is a port of *lcc*, not gcc.

HTH

Greg Holdren (gr...@wx.rose.hp.com) wrote:
: Mark A. Barclay <mbar...@wwa.com> wrote:
: : I'm considering porting GCC to cross compile for 8-bit platforms like
: : Z80/Z180. Is this a stupid idea or what? Has anyone done this before?


:
: Been Done. Look at the following page. It is a Gameboy C compiler
: for a psudo Z80 like CPU. It was derived from the normal Z80
: compiler (GCC). So it exist. Ask Pascal Felber were the original
: Z80 GCC compiler is or change the GB compiler. Well, looking at
: the web page now, it states the way GBDK (compiler) is set up
: that it can target the pure Z80.
:
: http://www.aracnet.com/~pfelber/GBDK/
:
:
: --
: Greg Holdren
: gr...@wx.rose.hp.com

:

--
--
/* Andrew */
WWW: http://www.halcyon.com/ast
Email: a...@halcyon.com (remove nospam from reply address)


0 new messages