13 September 2012

gcc

Compile:
   gcc -o run.exe sourceCode.c

Assembly file (syntax intel)
    gcc -o run.exe sourceCode.c  -S -masm=intel

32bit (on linux kena install sudo apt-get install gcc-multilib)
    gcc -o run.exe sourceCode.c  -S -masm=intel -m32


Jgn buang temporary file ( .i(substitutions), .s(assembly code), .o(object code))
    gcc -o run.exe sourceCode.c  -S -masm=intel -m32 -save-temps

No comments:

Post a Comment

Terima kasih