News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Convert 'C' to MASM by using a dump

Started by Robert Collins, February 07, 2005, 06:59:37 PM

Previous topic - Next topic

Robert Collins

So, your able to do this it appears to me by using a .bat file to compile the C program and include those arguments. I was trying to do it by runing the VC++ compilier in the IDE mode and not through a BAT file. I put the /Fa option in the Project|Settings|C/C++ tab|Project Options. It compiled OK but couldn't find anty assembly output listing.


marco1974

if u want a function converted to asm do this:

void somefunc()
{

__asm nop; 3x used as marker for sourcer
__asm nop;
__asm nop;

printf("hello");


__asm nop; 3x used as marker for sourcer
__asm nop;
__asm nop;
__asm nop;

}

in sourcer you need to make a .def file VERRY IMPORTANT!
And you need to DIG into some data to MANUALLY fill in the .DEF file from sourer
so that the dissasembled code for your function is easy to read.

I believe i used an tool called importlib or some other tool to get the HEXIMAL offsets of the beginning and ending adresses of the function you want to have.

I use sourcer sometimes to get clean code from Visual c++, the std src isn`t always compiler food!