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]

different pointer kinds


Did anybody face the problem of defining 2 different kinds of pointers with gcc?
Suppose you have 2 different memory spaces (A, B) that can be addressed using different
register sets (Aptr, Bptr).
Registers belonging to set Aptr have a different size from registers belonging to set Bptr.
At syntax level one could implement something like:


int *a_ptr  __attribute__((A));
int *b_ptr  __attribute__((B));

Pmode accepts only one definition and it seems that there is no obvious implementation for this,
e.g. :


#define Pmode0   PQI
#define Pmode1   PHI

Thanks in advance,

Alessandro Lonardo



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