This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Const data location (again)

Hi,

Having read various articles on the location of const data within a bank switched application, it appears that the compiler/linker will, by default, place all const data from a particular module in the common area- at least, this is certainly consistant with my application. Whilst I am able to manually locate the various ?CO? segments into the banks that the corresponding ?PR? segments reside, it means that I have to provide each segment address

BANK0(?CO?MODULE1(0A00h))
BANK0(?CO?MODULE1(0AE0h))
etc...

Is there a means by which I can simply tell the linker which bank to use for the location of the ?C0? segment, and have it work out the addresses thus achieving the most efficient packing of this data (just as it does when it places ?CO? segments in the common area)?

Many thanks

David