The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Eric4ever on March 21, 2006, 01:54:40 AM

Title: how to convert the C to asm
Post by: Eric4ever on March 21, 2006, 01:54:40 AM
I just want to rrwrite and change the code to asm format:
VOID CHANGE( PTCHAR FistName, PTCHAR SendName )
{
   TCHAR      new[MAX_PATH];
   PTCHAR      tmp;
   DWORD      result;

   _tcscpy( SendName, FistName );
   tmp = _tcsrchr( SendName, _T('\\'));
   result = (lastSlash - SendName)/sizeof(TCHAR);
.
.
.
}
Title: Re: how to convert the C to asm
Post by: asmfan on March 21, 2006, 01:36:56 PM
actually each C/C++ compiler, i can say for MS and Borland/Inprise, can produce .asm files from .c/.cpp files if you specify the appropriate compiler option. use /? to find out the option specification and then analyze the .asm... Best regards,
Igor