Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hurricanezhb
Beginner
75 Views

How to get the asm code and source code list with intel c++ compiler

I compiled the c file with /FAs but only get the following code:

; -- Machine type PW
; mark_description "Intel C++ Compiler for applications running on IA-32, Version 11.1 Build 20091130 %s";
; mark_description "-c -Ox -Og -Ob2 -Oi -Ot -Oy -GT -Qipo -I ../../inc -D NDEBUG -D WIN32 -D _WINDOWS -D __WIN32__ -D _VC80_UPGR";
; mark_description "ADE=0x0600 -D _UNICODE -D UNICODE -MT -GS- -Gy -arch:SSE2 -fp:fast -FAs -Fa.\\\\Release/ -Fo.\\\\Release/ -W3 -n";
; mark_description "ologo -Gd -QaxSSE2 -QxSSE2 -Qvc9 -Qlocation,link,D:\\\\Program Files\\\\Microsoft Visual Studio 9.0\\\\VC\\\\bin";
.686P
.387
OPTION DOTNAME
ASSUME CS:FLAT,DS:FLAT,SS:FLAT
END

0 Kudos
2 Replies
Michael_K_Intel2
Employee
75 Views

Hi!

I have checked with my compiler (v11.0) on my Windows box and the following minimal command line options gave the expected result:

icl /S /FAs test.c

It gave the following output (I copied only a few lines):

;;; int main(void) {

push ebp ;3.16
mov ebp, esp ;3.16
and esp, -128 ;3.16
sub esp, 128 ;3.16
push 3 ;3.16
call ___intel_new_proc_init ;3.16
; LOE ebx esi edi
.B1.5: ; Preds .B1.1
stmxcsr DWORD PTR [4+esp] ;3.16
or DWORD PTR [4+esp], 32768 ;3.16
ldmxcsr DWORD PTR [4+esp] ;3.16

;;; printf("Hello World\n");

Is that what you have been looking for?

Cheers,

-michael

TimP
Black Belt
75 Views

Quoting hurricanezhb

; mark_description "Intel C++ Compiler for applications running on IA-32, Version 11.1 Build 20091130 %s";
; mark_description "-c -Ox -Og -Ob2 -Oi -Ot -Oy -GT -Qipo -I ../../inc -D NDEBUG -D WIN32 -D _WINDOWS -D __WIN32__ -D _VC80_UPGR";
; mark_description "ADE=0x0600 -D _UNICODE -D UNICODE -MT -GS- -Gy -arch:SSE2 -fp:fast -FAs -Fa.\\Release/ -Fo.\\Release/ -W3 -n";
; mark_description "ologo -Gd -QaxSSE2 -QxSSE2 -Qvc9 -Qlocation,link,D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin";

/Qipo suppresses asm code. Are you trying this way to verify the effect of specifying the code generation architecture 3 times?
Reply