Is there any way to complie a microsoft style inline-assembly code on a linux platform?
问题 As mentioned in title, i'm wondering that is there any way to compile a microsoft style inline-assembly code (as showed below) in a linux OS (e.g. ubuntu). _asm{ mov edi, A; .... EMMS; } The sample code is part of a inline-assembly code which can be compiled successfully on win10 with cl.exe compiler. Is there any way to compile it on linux? Do i have to rewrite it in GNU c/c++ style (i.e. __asm__{;;;})? 回答1: First of all, you should usually replace inline asm (with intrinsics or pure C)