Migrating old code: C/C++ to CLR managed code, to JAVA, to more secure libs, better build options; semi-automated tools?

QuixoticOne

Golden Member
Nov 4, 2005
1,855
0
0
I know I've heard about some semi-automated tools to help migrate C/C++ to JAVA or CLR .NET code in the past.

I've also heard of tools to help instrument code and replace dangerous code like strcpy, printf, malloc, free, et. al. with more secure / instrumented types of calls without breaking the original code's function.

I never paid too much attention, though now I'm thinking of a few pet projects that this could be desirable for.

What are the better free tools or methodologies to go from C/C++ to C# or JAVA or other managed type code environments?

What are the better free tools to help clean up unreliable / unsafe usages of things like malloc/free, printf, strcpy, et. al. with versions that are more safe against buffer overruns?

What tools might help semi-automatically reform makefiles or autoconfs or whatever to help the code compile with better / more modern compiler options, linker options, etc.
Things like stack smashing guards at compile time, better error detection, address space randomization, position independent code, no text relocations, whatever the "best practice" options are for a given platform that doesn't too hideously break most old code?

It seems that there are lots of codes out there that are just about on the verge of being non-functional / non-sensible with the newer stricter compilers, with the evolution of 32 bit -> 64 bit systems, with the advent of multi-core systems, with the advent of buffer overflow problems, et. al.

I'm thinking that a lot of the 'value' in many of the old programs isn't so much in what they're written in but in what useful jobs they perform regardless of their language or library use. So the main thing that can be done to continue to benefit from them is to clean them up, improve their portability to modern platforms / ABIs / compilers / OSs, and help their security / reliability / maintainability.

There have to be some decent tools to assist this semi-automaticallt but I haven't seen too much that seems very comprehensive, i.e. a malloc replacement here, a safe strings library there, some instrumentation or autoconf fixes there...

 

TVisitor

Member
Jun 4, 2007
84
1
0
Well, I know we have a very large project in C++, and we use Visual Studio 6. We're porting it over to Visual Studio 2005 - though making no attempt to C# it. 2005 ends up telling you things like "strcpy" is unsafe, and suggests whatever replacement is safe. That's one place to start.

The question is, is it really worth porting your project? Is it large? We decided not to port it, and recognize someday we will end up rewriting it - which will end up letting us dump 10 years of baggage and get a fresh start with new architectural ideas and such.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |