What is the difference between 'asm', '__asm' and '__asm__'?

前端 未结 4 1787
梦如初夏
梦如初夏 2020-11-22 04:33

As far as I can tell, the only difference between __asm { ... }; and __asm__(\"...\"); is that the first uses mov eax, var and the sec

4条回答
  •  情歌与酒
    2020-11-22 05:21

    With gcc compiler, it's not a big difference. asm or __asm or __asm__ are same, they just use to avoid conflict namespace purpose (there's user defined function that name asm, etc.)

提交回复
热议问题