[Coco] cc6809 project
Boisy G. Pitre
boisy at boisypitre.com
Tue Mar 22 16:36:00 EST 2005
On Mar 22, 2005, at 2:35 PM, John R. Hogerhuis wrote:
> I'm working on getting sdcc branch ready to check in to the cc6809
> project on SourceForge. I haven't gotten my approval email from SF, but
> it seems the project is now existant and probably ready to go.
> I've created a clone of the sdcc sdcc/src/hc08 code generator called
> sdcc/src/mc6809 with
> search and replace of
> within the source files in sdcc/src/hc08, and I think I have everything
> in sdcc/src directory right.
> That was all easy peasy. Here's where it gets thorny:
> Currently there is an HC08 assembler and linker which is in the
> sdcc/as/hc08 directory. The build is set up to use that which is proper
> for now since mc6809 is actually an hc08 code generator.
> So it seems we'll need to make some decisions here... do we have an
> open-source assembler/linker we can use, are we going to write a new
> one, what platforms will we support (RS-DOS or NitrOS-9) for now...
Here's the current state of things:
(1) There are several ports of Alan Baldwin's asxxxx assembler/linker
combination. You'll find that SDCC has their own "branch" of these
assembler/linkers with special SDCC options built in.
(2) There is mamou, the "all-in-one" assembler which is part of
CoCoTools. This acts just like the old 'asm' assembler for OS-9/6809,
in that it assembles one source file and creates the object.
What is needed for a C compiler is a separate assembler and a separate
linker. Baldwin's package above already has support for the 6809, but
without SDCC's extensions. I suggest that we use that, and in fact
I've added OS-9 and RS-DOS link support to Baldwin's linker already,
and have them here. The source is here on my notebook. I'll email it
to you shortly.
Ideally we need to move away from "all in one" assemblers like mamou,
to an assembler/linker toolkit much like rma/rlink. However, modern
assembly source code is formatted quite differently from the way
Motorola/Microware assembly was from yesteryear. My goal is to move
the NitrOS-9 project to this new assembler format once the tools are
fully tested and working.
> Also, if anyone wants to be a developer, let me know your SF ID (only
> ask if you really intend to contribute... if you think you'll be
> contributing at some much later date, it's OK to ask me then... this
> avoids me having to deal with dropping people as time goes on).
Boisy G. Pitre
E-Mail: boisy at boisypitre.com
Mobile: (337) 781-3997
More information about the Coco