6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 10, 2024 4:29 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Dec 31, 2019 10:30 pm 
Offline

Joined: Thu Aug 08, 2019 7:52 pm
Posts: 4
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!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: