Hello
I'm rather new to the c-compiler on the 65816 and the linker is giving me a little trouble. The program I'm trying to compile includes a rather large array in bigdata.obj (90K). The linker seems to choke on that, giving me a module to big error. Can anyone help me by telling me what it is to big for? I'm assuming the problem is that bigdata.obj is larger than a single 64K bank. If so is that a fixed limitation or is there some linker switch to deal with this? The target platform has several MB of memory so total size of the program should not be a problem.
Linker output below, any help appreciated.
wdcln -HI -V -T -P00 -Zdata -Zcode -Zudata bigdata.obj callstack.obj header.obj object.obj stack.obj text.obj main.obj c0l.obj -LCL -O program.hex WDC 65C816 Linker Version 3.49.1 Apr 24 2006 15:40:38 Copyright (C) 1992-2006 The Western Design Center, Inc. Fill=0x00 Sections: org=00000000 siz=00003066 end=00000000 'CODE' org=00000000 siz=00016B28 end=00000000 'DATA' org=00000000 siz=0000024C end=00000000 'UDATA' org=00007D00 siz=00000050 end=00007D50 'startup' org=00007EE4 siz=0000001C end=00007F00 'shadow_vectors' org=0000FFE4 siz=0000001C end=00010000 'vectors'
Module map: ROM:00007D00 00007D50 REL:00007D00 00007D50 S=startup M=C0L.OBJ F=C:\WDC\Tools\LIB\c0l.obj ROM:00007EE4 00007F00 REL:00007EE4 00007F00 S=shadow_vec M=C0L.OBJ F=C:\WDC\Tools\LIB\c0l.obj ROM:0000FFE4 00010000 REL:0000FFE4 00010000 S=vectors M=C0L.OBJ F=C:\WDC\Tools\LIB\c0l.obj Module 'bigdata.obj:bigdata.obj' too big to fit!
|