Re: [cc65] Platform specific docs

Date view Thread view Subject view

From: Shawn Jefferson (shawnjefferson_at_24fightingchickens.com)
Date: 2003-10-27 22:35:20


On Mon, 27 Oct 2003 12:03:37 -0800, you wrote:

>You can utilize multiple load segments in a cc65 executable by
>inserting a segment header ($FF $FF <start memory address> <end memory
>address> ).  Since the start address and end address of the first
>segment is calculated in the crt0.s file from the initial load address
>of your program (default is $2E00) and the end of the BSS segment, you

Sorry, this is wrong, it is __BSS_LOAD__ - 1 that is used in the
crt0.s file to calculate the end address.

This might be slightly off topic, but I noticed that in _heap.s we are
subtracting the size of the stack.  Since the stack is by default on
the Atari platform put at MEMTOP, if I move my BSS segment, is not
_heap.s wasting some memory that otherwise could be used?  The heap
grows downward toward the program, right?

--
Shawn Jefferson
----------------------------------------------------------------------
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-27 22:38:02 CET