Hi,

 

Code in main.c :

 

typedef  unsigned char * PBYTE;

int main()

{

PBYTE xdata xptr;

 

  return 0;

}

 

Use ‘sdcc main.c’ to compile. SDCC reports “error 1: syntax error, declaration  ignored  at ‘xptr’”.

But if use “unsigned char * xdata xptr” to declare xptr, it is right!

 

 

Thanks

wbma