C编译.. [英] C Compilation..
问题描述
是否有任何标准告诉我们如何将c代码编译成
机器代码
is there any standards that tell us how c code has to be compiled into
machine code
推荐答案
raashid bhatt说:
raashid bhatt said:
是否有任何标准告诉我们如何将c代码编译成
机器代码
is there any standards that tell us how c code has to be compiled into
machine code
编号C代码甚至不需要*编译到特定机器的机器上
代码。通常它不是 - 它被编译(翻译)成特定的
机器的汇编语言。它甚至可以编译成一些完全不同的语言。或者它可能根本没有编译(C
口译员存在)。
无论如何,这样的标准是不切实际的。那里有太多的b / b $ b种机器和太多种机器代码,对于这样一个实用的b $ b标准。
>
-
Richard Heathfield< http://www.cpax.org.uk>
电子邮件:-http:// www。 + rjh @
谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>
Usenet是一个奇怪的放置" - dmr 1999年7月29日
No. C code need not even *be* compiled into a particular machine''s machine
code. Often it is not - it is compiled (translated) into a particular
machine''s assembly language instead. It could even be compiled into some
completely different language. Or it might not be compiled at all (C
interpreters exist).
In any case, such a standard would be impractical. There are just too many
kinds of machine out there, and too many kinds of machine code, for such a
standard to be practical.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
2008年8月23日8:13,raashid bhatt写道:
On 23 Aug 2008 at 8:13, raashid bhatt wrote:
is有任何标准告诉我们如何将C代码编译成
机器代码
is there any standards that tell us how c code has to be compiled into
machine code
是的。大多数处理器供应商将为优化编译器的编写者提供大量文档和
建议和指南。例如,
英特尔在网上免费提供所有这些:
http://www.intel.com/products/processor/manuals/
Yes. Most processor vendors will provide extensive documentation with
advice and guidelines for writers of optimizing compilers. For example,
Intel provides all this for free on the web:
http://www.intel.com/products/processor/manuals/
没有。 C代码甚至不需要*编译到特定机器的机器上
No. C code need not even *be* compiled into a particular machine''s machine
代码。通常它不是 - 它被编译(翻译)成特定的
机器的汇编语言。它甚至可以编译成一些完全不同的语言。
code. Often it is not - it is compiled (translated) into a particular
machine''s assembly language instead. It could even be compiled into some
completely different language.
是的,我同意,C也许是编译语言。但是当人们说b代码比任何语言都快时,但如果我们使用不同的编译器我就不会这样做(因为你说没有编译的标准) />
代码)
yes i agree , and C is perhaps a Compiled language. But when people
say C code is faster than any language but i will not be true if we
use diffrent compilers(as u said there is not standard of compiled
code)
这篇关于C编译..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!