Visual C++ 컴파일을 위한 실행 파일 cl.exe 를 사용하면 c 소스코드를 어셈블리로 변경할 수 있습니다.

c:\> cl.exe /FAsc main.c

main.cod 파일이 생성됨




1.컴파일
ml /c /coff /Zi 파일명.asm

/coff (common object file format :파일 형태)
/Zi


2.링킹
link /debug /subsystem:console /entry:start /out:파일이름.exe  파일이름.obj io.obj kernel32.lib

/subsystem:console (콘솔 창 형태의 출력을 하는 프로그램 )
/entry:start (프로그램 시작지점을 지정한다.)
/out:파일이름.exe (실행파일 명을 지정)
파일이름.obj io.obj kernel32.lib (오브젝트 파일을 링킹 시킨다.)


3.실행

 

Posted by 응이

Dream come true.
응이

달력

태그목록