[RFC] Using more than one access method to memory locations

Svein E. Seldal Svein.Seldal@solidas.com
Fri Nov 26 19:55:00 GMT 2004


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



More information about the Gcc mailing list