This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[RFC] Using more than one access method to memory locations
- From: "Svein E. Seldal" <Svein dot Seldal at solidas dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 26 Nov 2004 20:38:11 +0100
- Subject: [RFC] Using more than one access method to memory locations
Hi,
Would it be generally possible to make gcc issue two different INSNs when the
compiler is accessing memory from two different memory sections?
My idea is that it would be nice if the compiler can access a given memory
segment with one kind of instruction, and access another memory segment using
another instruction to access it.
The major problem arises when using pointers, because which section a symbol
belongs to may not be available at compiletime. A possible workaround for
this would be to implement some kind of __attribute__ on pointers and
variables. Then the compiler can know which INSN to use to access the data.
Does this sound at all feasable?
Regards,
Svein Seldal