[A83] Re: Z88DK vs. SDCC


[Prev][Next][Index][Thread]

[A83] Re: Z88DK vs. SDCC




According to the GCC page, GCC includes an ATMEL AVR port, which is an 8bit
micro controller. Of course it might have more registers than Z80, or better
stack access. I don't know. Note that GCC does work for x86, which didn't
have too many registers (and only 8 and 16bit). I think it could be done.

Whether or not I would volunteer would depend in large part how
bad/good/workable the code we're working with looks, and how suitable the
data structures in their compiler are to dealing with these kinds of
optimizations.

-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Martin Virt
Sent: Wednesday, July 11, 2001 1:37 PM
To: assembly-83@lists.ticalc.org
Subject: [A83] Re: Z88DK vs. SDCC





>I'd volunteer, although the Z88DK documentation seems to make it clear that
>they don't expect to add source optimization ever. Part of the reason for

We've already started discussing this topic. Dominic is aware of the
difficult task which will expect us when implementing compiler
optimization. And I think the tone is reflected on the z88dk homepage.
Nevertheless he gave green light, so we'll work out how to do this soon.
Still that's nothing more or less than saying we're at the beginning and it
could take some time. (Still don't want to join?)


>this is probably that it isn't quite as easy as it first appears -- take
the
>code I posted earlier with k = i * j -- optimizing that isn't exactly
>trivial.

Sure, but the example itself is not representative enough. Bigger programs
may make the difference between both compilers less obvious ...


>The question might be asked if it wouldn't be easier to start a compiler
> >from (almost) scratch (probably use the GNU preprocessor at least), or to
>port GCC.

I'd opt for implementation of gcc specific optimization techniques. I'm not
sure, as I haven't looked very closely at gcc (except compiling code with
it), but I bet it is laid out for 32-bit, so this won't be any good for the
Z80.
Can anybody clarify these gcc-specific topics (especially if it really is
32-bit only)?

MaV





References: