Re: [cc65] Segments

Date view Thread view Subject view

From: Greg King (gngking_at_erols.com)
Date: 2002-10-19 19:46:03


-----Original Message-----
From: Ullrich von Bassewitz
Date: Thursday, October 17, 2002 05:24 AM

> On Wed, Oct 16, 2002 at 02:39:37PM -0700, Shawn Jefferson wrote:
> > What exactly goes into these segments:
> >
> > DATA
>
> Initialized data.
>
> > RODATA
>
> Initialized constant-data, string-literals, jump-tables, and similar stuff.
>
> > BSS
>
> Uninitialized data.
>
> > Also, if I malloc() some memory, what segment does this come from?
>
> From BSS.

Actually, it comes from a place called the heap.  The heap is all of the memory
that sits between the BSS segment and the stack.  The start-up code puts the
stack at the top of the memory that is used by cc65 (which usually
is the memory-area that is named RAM in ld65's configure-scripts).

----------------------------------------------------------------------
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 : 2002-10-23 04:22:33 CEST