That was it. I was declaring it in the header without extern. They weren't 
static though. Shouldn't the linker have at least made a separate line in the 
map with the different addresses of all the shadowed variables? It seems to me 
that it behaved as if they were static when it should have been an error. I 
would have figured it out if I saw multiple lines with the same symbol.

Eric Amy
Sherpa Solutions, LLC
(678) 906-4182



On Feb 26, 2011, at 3:50 AM, Maarten Brock wrote:

> Eric,
> 
> I think you have them defined 4 times or something like 
> that. Maybe you forgot to 'extern' them and made them 
> 'static' instead? The fact that Out_Packet is at address 
> 0x0100 and In_Packet at 0x0140 shows that there size is 
> ok (64 bytes).
> 
> Maarten
> 
>> Then it's 8 bytes. Even if they're not arrays, it's 8 bytes. With elements 
>> together totaling ~32 it compiles without warnings because the 4 times size 
>> fits in idata. Same as if I just put those buffers in xdata where it can 
>> easily have the 512 bytes, which is what I'm doing for the moment.
>> --
>> Eric
>> 
>> 
>> On Feb 25, 2011, at 4:46 PM, Jan Waclawek wrote:
>> 
>>> What happens if you set both buffers to [1]?
>>> 
>>> JW
>>> 
>>> ----- Original Message ---------------
>>>> I have an in- and out-buffer of 64 bytes that should fit in the near =
>>>> ram, but it gets a linker error of:
>>>>    link-Error-Could not get 128 consecutive bytes in internal RAM =
>>>> for area ISEG.
>>> 
>>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Free Software Download: Index, Search & Analyze Logs and other IT data in 
>> Real-Time with Splunk. Collect, index and harness all the fast moving IT 
>> data 
>> generated by your applications, servers and devices whether physical, virtual
>> or in the cloud. Deliver compliance at lower cost and gain new business 
>> insights. http://p.sf.net/sfu/splunk-dev2dev 
>> _______________________________________________
>> Sdcc-user mailing list
>> Sdcc-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in 
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business 
> insights. http://p.sf.net/sfu/splunk-dev2dev 
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to