Re: [cc65] Platform specific docs

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-28 19:15:08


Hi!

On Tue, Oct 28, 2003 at 08:39:06AM -0800, Shawn Jefferson wrote:
> Ok, so if I understand this correctly, if I move my BSS segment then
> malloc'ed memory won't be located in the BSS segment, it will be
> sitting at the end of memory just below my C stack regardless of how I
> have my config file setup?

The current implementation of the heap assumes that the stack is located at
the end of the BSS segment. The heap is located at the bottom of the stack and
will grow downwards. There has been a discussion about changing this some
months ago, but a flexible solution requires expressions in the linker
scripts, so it has been postponed.

If you want to change the current behaviour, you will have to replace the heap
initialization code in the _heap.s module.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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-28 19:15:38 CET