[C++][ASM]Xcode內聯彙編

Share on FacebookShare on Google+Tweet about this on TwitterShare on Tumblr

以下兩種方法是可行的但會出現錯誤警告,不過編譯會過但會顯示

MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)

__asm{

mov eax,a ; more… asm

}

__asm__{

mov eax,a ; more… asm

}

已下過中斷點下去看了 是有執行的