Re[2]: [cc65] Bank Switching

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2002-09-25 01:30:41


Hello Shawn,

Wednesday, September 25, 2002, 1:13:20 AM, you wrote:

SJ> From looking at the source code for crt0.s in the atari library, the
SJ> main header uses the values for CODE and BSS - 1 to create the header,
SJ> so you are sort of stuck with putting the code and bss
SJ> (what does that stand for?) in the first memory segment.  Unless
SJ> there is a way to override this without recompiling the library.
SJ> The first segment is the smallest segment...

BSS is space reserved for non-initialized data (ie global variables
usually) ... you should be able to move this to another location in
memory easily with no need of recompiling any library stuff at all.

SJ>  but I guess we
SJ> could split the code segments with some manual stuff in our C
SJ> files and that should still work properly with the standard library right?

yes, just like moving the various sections used by the libraries (data
and bss mostly... you maybe could move library code into a
seperate chunk aswell) should work without any recompile trouble...

-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
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-09-25 12:08:14 CEST