Re: [cc65] Segment EXEHDR does not exist - while using ld65 directly

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-07-20 22:39:05
On Tue, Jul 14, 2009 at 01:39:25PM -0400, Greg King wrote:
> That reminds me of an idea:
> When the C compiler sees the definition of main(), it inserts a
> ".forceimport" line into its assembly-code output if that main() has
> parameters.  I think that it will be useful for the compiler to generate
> another ".forceimport" line when it sees main() { }:
>
>     .forceimport    _exit

The idea is good, but I don't think the compiler should reference _exit but
the STARTUP segment instead. While exit() is usually part of crt0.s, it is not
a necessity. When referencing STARTUP, we can easily define that the startup
code must contain a STARTUP segment.

> If you accept that idea, then it must be put on your "to-do" list because
> it needs STARTUP segment support (to guarantee where the code is put).
> Some of the targets do not have that segment -- yet.

Maybe it's time to drop some of the very old supported systems like osa65?
It's tedious to maintain it without being able to test it and without any
known users.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jul 20 22:41:58 2009

This archive was generated by hypermail 2.1.8 : 2009-07-20 22:42:00 CEST