'asm','__asm'和'__asm__'之间有什么区别? [英] What is the difference between 'asm', '__asm' and '__asm__'?

查看:189
本文介绍了'asm','__asm'和'__asm__'之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知, __ asm {...}; __ asm __(...); 是第一个使用 mov eax,var ,第二个使用 movl%0,%% eax := r(var)结尾。还有什么其他差异?关于 asm

As far as I can tell, the only difference between __asm { ... }; and __asm__("..."); is that the first uses mov eax, var and the second uses movl %0, %%eax with :"=r" (var) at the end. What other differences are there? And what about just asm?

推荐答案

你的编译器。这不像C语言那样标准。

Which one you use depends on your compiler. This isn't standard like the C language.

这篇关于'asm','__asm'和'__asm__'之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆