1.

Solve : Pascal-to-C or C++ cross-compiler?

Answer»
I'm porting an application of about 15,000 lines of Pascal code to Windows CE from 3.1, and want to update the language from Borland Pascal 7.0 to MICROSOFT Visual Studio 2005 C or C++.

I have been trying to find out if there is a cross-compiler that would help me along. Does anybody know of one or have any info?

Thanks!A cross compiler is a compiler that is able to create binary code for a platform different from the one the compiler is RUNNING on. These are often used when it is unpractical to compile the code directly on the platform, for example if the platform is a slow mobile device. But in order to use a cross compiler you will still need source code that is capable of running on the platform you wish to create a binary for, which is not the CASE here.
If you want to port the code to a different language, I believe you unfortunately have to more or less rewrite the application. Have you CHECKED to see if there are any pascal compilers for WinCE? It might save you some time.I know there is some free software called p2c that can take pascal source code and make it C or C++ source for you. Might help remove some drudge work, but might also be more trouble than its worth if your Pascal PROGRAM uses a lot of libraries you don't have the source for or graphics routines. Read about/download p2c at the author's page here: http://www.synaptics.com/people/daveg/


Discussion

No Comment Found