This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Linker question
- From: "Sumesh UdayaKumaran" <sumesh_uk at hotmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 13 Jun 2003 15:38:40 +0000
- Subject: Linker question
- Bcc:
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