Hi, all.Does anybody know how to convert C/C++ code to pure assembly code????
Thanks, in advance
Thanks, in advance
compile it :)
and using MVC++ compiler you can set compiler to dump the asm file
win32dasm could be useful here right ?
i'd say better use ollydbg then instead of win32dasm, it isnt a decompiler but debugger so you can run the code while looking what it actually does.
and where can i find win32dasm
I don't know if there's any legit ways of obtaining w32dasm, iirc it has been discontinued. But google for "idafree", it is a far superior disassembler. You can get a free and fully-working version of VC2003 from http://msdn.microsoft.com/visualc/vctoolkit2003/ .
To get the assembly equivalent of a C source file using MS VC++ :
cl /c /Fa hello.c
PVDasm Disassembler at http://pvdasm.anticrack.de
PVDasm Disassembler at http://pvdasm.anticrack.de
After downloading PVDasm check this article out http://www.codeproject.com/cpp/reversedisasm.asp
morakladan,
To do what you are after, use the link the f0dder provided and download the VCTOOLKIT as it has a very good C compiler in it. Run CL /? > textfile.txt to get all of the command line switches so you can set the options properly.
In particular learn the correct optimisation switches as they are useful to you if you want ASM output. Build the module with all of the optimisation turned on to get some idea of how fast it is then if you need it to be faster you can try and optimise it.
Just a hint if you want to take this path, build the ASM with all of the optimisation turned off as the code is easier to read and modify. You will have to remove a lot of redundant code if you do but you have more registers to start with.
To do what you are after, use the link the f0dder provided and download the VCTOOLKIT as it has a very good C compiler in it. Run CL /? > textfile.txt to get all of the command line switches so you can set the options properly.
In particular learn the correct optimisation switches as they are useful to you if you want ASM output. Build the module with all of the optimisation turned on to get some idea of how fast it is then if you need it to be faster you can try and optimise it.
Just a hint if you want to take this path, build the ASM with all of the optimisation turned off as the code is easier to read and modify. You will have to remove a lot of redundant code if you do but you have more registers to start with.