[Coco] DECB or ECB Compiler

William Astle lost at l-w.ca
Sun Oct 3 23:18:36 EDT 2010


On 10-10-03 04:32 PM, Frank Pittel wrote:
> I've never tried it but I've noticed that there is a port of gcc that
> will generate 6809 code. Cross compile to assembly and then assemble with
> one of the many cross assemblers out there. I may have to give it a try over
> next few weeks as time permits! :-)

There are some issues with the code generation in the latest version. 
Under "-Os" (optimize for size), it messes up stack offsets leading to 
incorrect code. Neither I nor the fellow maintaining gcc6809 have been 
able to figure out why. It appears to do all right without size 
optimization however.

That said, optimizing for size tends to generate better code overall on 
the 6809 so that malfunction is a bit annoying.

In any event, gcc6809 is at http://www.oddchange.com/gcc6809/ for anyone 
interested.

Note that there is no standard C library or anything like that so you 
can't just grab a C hello world and have it compile and execute on a coco.

-- 
William Astle
lost at l-w.ca




More information about the Coco mailing list