本文介绍了是内联汇编ANSI C标准的一部分吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直以为是,但许多IDE和语法高亮工具不使用C突出ASM,但他们总是用C ++做。是C标准的内联汇编部分(ANSII或ISO)或不?


解决方案

这不是在ISO C标准(C2011的n1570草案)本身,而是在附录J的提及(常用扩展):

Annex J is informative, not normative, so an implementation need not provide inline assembly, and if it does it's not prescribed in which form. But it's a widespread extension, though not portable since compilers do indeed implement it differently.

In the C++ standard (n3376 draft of the C++11 standard), it is mentioned in the body of the standard

but also not mandatory, and with implementation-defined interpretation.

这篇关于是内联汇编ANSI C标准的一部分吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 22:14