veganbas.blogg.se

Cpp to exe converter
Cpp to exe converter








  1. #CPP TO EXE CONVERTER .EXE#
  2. #CPP TO EXE CONVERTER CODE#
  3. #CPP TO EXE CONVERTER WINDOWS#

#CPP TO EXE CONVERTER CODE#

Is it worth the effort? If you lost the original source code to a program you wrote 10 years ago, you're most probably out of luck. After a zillion rounds with disassembly, modify input file, new disassembly you may have something that makes some form of sense. NET SDK and for many other platforms there are disassemblers available.Īlso, the output from a disassembler usually need several rounds, where you study the disassembler output, figure out what some variables do and what some functions do and from that you edit an input file to the disassembler where you give names and data types and formats to locations and functions so that the next output is a little better. net there already is one that comes with the. Again, I will say a decompiler is impossible, you can try to get a disassembler but for. Let me humbly suggest that you tell us first WHY you want a decompiler before we go further into the nitty gritty details. net file if you want, good luck if you want to try though, it is not for those who are faint of heart.Īlso, in Linux you have a similar situation, you have the old a.out format and then you have the newer ELF format and the ELF format comes in a bunch of varieties which you have to figure out where each part start and where to find what info etc. It is quite a job to walk through those to for example disassemble a.

#CPP TO EXE CONVERTER .EXE#

exe header and with bits or special data in the header before it to indicate that the new more modern header follows.

#CPP TO EXE CONVERTER WINDOWS#

Windows manages this by making use of layers upon layers of new modern headers that are appended after the original MS DOS. Yet, that windows XP application still have the same header and layout as that MS DOS 3.2 file, so that you can attempt to run it under 3.2 and it would politely tell you that it won't run there :-) exe file made to run under Windows XP as a window application, perhaps being a. exe made to run under MS DOS 3.2 looks very different from an. In linux the situation is similar because there too, you have shared objects with similar dynamic linking.Īlso, in windows you have several different versions of the. For example in windows there is an extensive use of shared libraries called DLL's and the call to those are probably not so easy for you to detect and decode unless you know the format.

cpp to exe converter

However, even if you do have a nice and clean C program to start with, the pitfalls are many. Would indicate that some_addr is a data location.Įrr.suddenly it contained a pointer to an address or worse:Įspecially if the program was originally written in assembly you might find lots of unexpected trickery with what is considered code and what is data and what data type that data at location x is supposed to be. For example for a pentium processor you might think that: The problem is that of finding out if a particular memeory location contains what kind of data. Generally you have to emulate the code, run through it and see what code that would generate. Please tell us all, if you are going to sell your C++ decompiler, this sounds very interesting.Īn exe2cpp program is - as already said - perhaps theoretically possible but definitely practically impossible.Ī disassembler on the other hand is doable, but to make a good one you need to do a lot of work.

cpp to exe converter

Oh, how well does you program work for executables created with VB or Delphi? These are also legal exe files. Perhaps you can compare your attempts of decompiling with these and get some ideas.

cpp to exe converter

no decompilers to C or C++ in that league so far, i may have missed something. There are some disassemblers which do a good job there and are considered top of the line tools. and there are different compilers and optimizers making this an even more complicated task. I'd very much like to know, how you get the information about all the possible libraries which can be statically or dynamically linked to an exe file. There are some decompilers available, but they do not do a very good job in creating anything similar to the original C or C++ source. The problem is not converting the functionality to whatever language, but to extract the semantics of the original C program, even harder for C++. How would taking a compiler course in grad school help here? Hmmm, maybe there you got the idea of creating your own "language", because that's what compiler courses are for.










Cpp to exe converter