This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

[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


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