I file con estensione .cpp possono essere compilati anche con l'opzione /clr, in tal caso si ottiene:
Codice:
file "prova.cpp"
.rdata
$SG6926:
.ascii "CIAO MONDO!\000"
.bss
.local $T6944,0
; Function compile flags: /Odtp
.text
.global ?main@@$$HYAHXZ ; main
?main@@$$HYAHXZ: ; main
; .proc.def D:I()
; Function Header:
; max stack depth = 1
; function size = 17 bytes
; local varsig tk = 0x11000001
; Exception Information:
; 0 handlers, each consisting of filtered handlers
; .local.i4 0,"$T6943" SIG: i4
; .proc.beg
; File prova.cpp
; Line 5
ldc.i.0 0 ; i32 0x0
stloc.0 ; $T6943
ldsflda $SG6926
call ?puts@@$$J0YAHPBD@Z
pop
; Line 6
ldc.i.0 0 ; i32 0x0
stloc.0 ; $T6943
; Line 7
ldloc.0 ; $T6943
ret
.end ?main@@$$HYAHXZ ; main
; .proc.end.i4
_TEXT ENDS
PUBLIC __mep@?main@@$$HYAHXZ
PUBLIC _main
; COMDAT __mep@?main@@$$HYAHXZ
data SEGMENT
__mep@?main@@$$HYAHXZ TOKEN 0A000009
; Function compile flags: /Odtp
data ENDS
; COMDAT _main
_TEXT SEGMENT
_main PROC ; COMDAT
jmp DWORD PTR __mep@?main@@$$HYAHXZ
_main ENDP
_TEXT ENDS
END