Re: [cc65] Platform specific docs

Date view Thread view Subject view

From: Christian Groessler (chris_at_groessler.org)
Date: 2003-10-08 00:02:30


Hi,

On Tue, 7 Oct 2003, Shawn Jefferson wrote:

> Ok, I've started typing up a little documentation for the Atari
> platform, using the c64.sgml as a template.  Here's the text I've
> added so far (for comments, especially from those responsible for the
> Atari library):

Cool!
Thanks for your contribution.

> Binary format:
>
> The standard binary output format generated by the linker for the
> atari target is a machine language program with a standard executable
> header (FF FF <start address> <length in bytes>). These values are

There is a small error here, the exe header is (FF FF <start address> <end
address>).


> Heap:
>   The C heap is located at the end of the program and grows towards
> the C runtime stack.  The location of the C heap is placed at the end
> of the BSS segment.  To override this behaviour you would have to
> write a custom _heap.s (in libsrc/common/) and link it to your
> program.

I think this isn't really Atari specific, it should apply to most (all?)
other targets.


> That's all I have right now.  I'm wondering if I should talk about how
> to create a binary file with multiple load segments with cc65 in the
> binary format section?

Hmm, maybe. Iirc, you need a "hole" inside your program, so multiple load
segments would be the way to do it. I haven't thought about supporting
this yet, do you have any suggestion on how to handle it?


> Additions/Comments/Death threats?

Here's a !(Death threat)  :-)

regards,
chris

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-08 00:07:43 CEST