Hello all,
I need to migrate a 8051 C based code into ARM platform.
In the new platform I'm using a newer C/C++ compiler that does not recognise the old platform compiler keywords like: xdata, bit, etc...
In order to migrate these old keywords to the new compiler I wrote:
typedef int bit;
That did the job for the bit keywords (hundreds of compiler error were gone at once... ).
But now I have the problem with the xdata identifier. In this case I just want the precompiler to ignore it as if it is not there.
A sample line appears below:
extern xdata char Upd_CommandBuf[];
I need it to become:
extern char Upd_CommandBuf[];
I've tried to write:
typedef char xdata char;
But the precompiler does not understand this.
Does someone has a clue?
I need to migrate a 8051 C based code into ARM platform.
In the new platform I'm using a newer C/C++ compiler that does not recognise the old platform compiler keywords like: xdata, bit, etc...
In order to migrate these old keywords to the new compiler I wrote:
typedef int bit;
That did the job for the bit keywords (hundreds of compiler error were gone at once... ).
But now I have the problem with the xdata identifier. In this case I just want the precompiler to ignore it as if it is not there.
A sample line appears below:
extern xdata char Upd_CommandBuf[];
I need it to become:
extern char Upd_CommandBuf[];
I've tried to write:
typedef char xdata char;
But the precompiler does not understand this.
Does someone has a clue?
Comment