473,386 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

8051 Code migration

3
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?
May 17 '09 #1
3 2223
Alonx
3
Hello all,

I've already posted this question but maybe in the wrong location, so I'll try again here...

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?
May 18 '09 #2
newb16
687 512MB
Does
Expand|Select|Wrap|Line Numbers
  1. #define xdata
  2.  
(empty define)
work?
May 18 '09 #3
Alonx
3
Thank you Newbe16.

You've opened my eyes :)
May 18 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count...
1
by: Keith R | last post by:
I have VB6, and eventually plan to upgrade to dotnet. I will soon start writing an application that will be mostly local (client?) but will interface with a server a few times, to authenticate...
4
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
1
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables...
2
by: aww91 | last post by:
Company is planning a Sybase to UDB migration that is projected to take 1 year. During that long period of time any Code Freeze put into place would impact our users (we normally release code...
16
by: Sohail | last post by:
Hi all, i am now to group this might be out of topic, if it is then please tell me where i should ask this question... At the time i am working on a project based on 8051, The project is so get...
13
by: webzila | last post by:
Hello, I have to write a program for an 8051 micro-controller using micro-C to monitor Switch 1 and if the switch in pushed the message "switch 1 pushed" should be displayed in the LCD. Also the...
1
by: debasish2205 | last post by:
Hello All, I am new to networking.But asigned a project on TCP-IP using Silicon Labs 8051 microcontrollers. I have ben asked to design the TCP-IP stack in C.Could anyone give me any ideas on this...
3
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.