This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linker question


Hi
As part of a project Iam involved in, I need to maintain copies of the same variable in different memory banks (kind of like cache). I then want to based on criteria I have address the different copies at different program points.


Eg ldw r3,A ....................Address the copy of global variable A in bank1.

..................

................
ldw r4, A Address the copy of global variable A in bank2




Iam implementing this on a gcc cross compiler for mcore-elf.

From what I have figured so far (Iam really new to this whole world of
linking and assembling ), I can handle this at the stage when the exact addresses are being generated.

The questions I had were:
1. Where is the exact address being generated.
2. As an alternative , can I handle such a scheme through a script, in other words can the script be used to guide such an addressing.



Any pointers, suggestions will be great



thanks sumesh

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]