This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
different pointer kinds
- From: Alessandro Lonardo <alessandro dot lonardo at roma1 dot infn dot it>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 28 Jul 2004 14:50:51 +0200
- Subject: 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