473,395 Members | 2,689 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,395 software developers and data experts.

how easy is it to migrate a system written in C to Java or C#?

3
We have specialist systems that were originally written in clipper and have been very succesfull.

They have recently been migrated to xharbour and are now 32 bit.

They involve much statistical analysis on very large files (Currently .dbf's)

They are multiuser systems.

When xharbour compiles and links these programmes it generates programmes written in C.

We would like to migrate the current system to a more modern language such as Java or C# or even C++.

How easy is it to migrate a system from C to Java or C to C#.

Any comments will be gratefully received.
Oct 14 '15 #1
3 1187
chaarmann
785 Expert 512MB
Google for "c to java converter".
But an automated coversion will give you poor code quality, no matter what you use. So I would recomment to rewrite the program instead, if you want to work with the resulting code.

So automated conversion is easy. But if the code contains some tricky methods or execution-time dependencies, then it can become a nightmare to find and fix this error.
Oct 21 '15 #2
SV21
3
I have noticed that trying to read the .c files that "xharbour" generates, and comparing them to the original xharbour code, is very difficult.

Thanks for your comments

Vaughan
Oct 22 '15 #3
SV21
3
Hi One further thought.

It has been suggested that we use an automated conversion initially. We mainly have xharbour generated ".c" (programme)files but these themselves are a product of automated conversion. We also have some "c" objects without the corresponding ".c" files.

I understand that a "c++" compiler will actually compile these "c" files and probably the objects.

Could we then compile this into Java or c# using an automated converter?


We would then re-write a section at a time in the preferred language. As we looked at each section we would probably improve it. Also this would be a process by which we would educate the developer in how the system works so that they could also provide support services in the future.(The developer would have access to the generated "c" code, the original "xharbour" code and the developer who is gradually retiring over the next few years.

The other good thing about this is that it also limits our risk and we can change direction in the early stages of the project if we are not happy.

We will also be looking for some assistance, any suggestions?

Thanks

Vaughan
Oct 22 '15 #4

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

Similar topics

4
by: Jack | last post by:
I'd like to set up a wiki system for a project I'm working on. Since I'm not good at databases, and there's really not much stuff to put into the wiki, I hope it is text file-based. I used...
4
by: Frugoo Scape | last post by:
Hi, I know the basic about java and i have been trying to edit a program that is mad in java. If you help me ill make you admin in the game. --- The problem with this app is that it does not...
6
by: rahulbsbs | last post by:
Sir how can i get the ip address of the remote system by writting a java code,ie i want to get ip address of the remote system that is connected to my server computer ,the ip address must be obtained...
1
by: crs27 | last post by:
Hai, I have an Web-application developed with Oracle 10g at back end, Easy loader for Uploading Map and also make use of MapXtreme too. I would like to know what are the requirements to...
3
by: p vs np | last post by:
Hi I am relatively new to Java and would like to start off with a simple project. I would like to connect a basic database system with an interactive, java front-end. Could anyone suggest as to...
0
by: netri | last post by:
I need to write a java program in which i need to access a computer in my network using IP address but system is password protected.so how can i access a password protected system to fetch a file...
1
by: Prashantust | last post by:
Can any one let me know what is th easy way to ftp file from windows to linux machine using java net package. With the java program mentioned below I am getting below error Error:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.