Re: [cc65] Running out of memory on segment code

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-06-01 13:59:38
Hi!

On Tue, Jun 01, 2010 at 12:14:39PM +0100, S M wrote:
> I am running out of memory on segment CODE, and I would like to use also
> another section of Memory, say RAM3. I also can use ram from $e000 onwards.
>
> How can I do this?

Place the code/data you want to place into RAM3 into another segment (MYCODE
for example). Then tell the linker to load this segment into the RAM3 memory
area.

Linker config files are explained here: http://www.cc65.org/doc/ld65-5.html

> How do I select a segment say CODE2 in a c file? is there a #pragma for
> this?

See http://www.cc65.org/doc/cc65.html#toc7.5

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 Tue Jun 1 13:59:44 2010

This archive was generated by hypermail 2.1.8 : 2010-06-01 13:59:46 CEST