C编译器内部 [英] C compiler internals

查看:64
本文介绍了C编译器内部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai,


我可以获得一些文档或链接来学习C编译器内部

从基础到高级。它必须包含良好的文档,说明

编译器如何为变量分配内存。


再见

Guru Jois

Hai,

Can I get some docs or links to learn the C compiler internals
from basic to advanced. It must contains good documentation of how
compilers allocates memory to variables.

Bye
Guru Jois

推荐答案

On Sun,2007年5月27日04:52:52 -0700,Guru Jois写道:
On Sun, 27 May 2007 04:52:52 -0700, Guru Jois wrote:

Hai,


我可以获得一些文档或链接来学习C编译器的内部结构

从基础到高级。它必须包含良好的文档,说明

编译器如何为变量分配内存。


再见

Guru Jois
Hai,

Can I get some docs or links to learn the C compiler internals
from basic to advanced. It must contains good documentation of how
compilers allocates memory to variables.

Bye
Guru Jois



有很多不同的C编译器,其中一些是

闭源。我不认为MSVC编译器有很多关于内部如何工作的深入文档。


看一下以下链接有关GCC的一些信息

编译器:
http://en.wikibooks.org/wiki/Categor...iler_Internals


希望它有所帮助。


问候,

Jensen

There are a lot of different C compilers out there and some of them are
closed source. I don''t think the MSVC compiler has a lot of in-depth
documentation on how it works internally.

Take a look at the following link for some information about the GCC
compiler:
http://en.wikibooks.org/wiki/Categor...iler_Internals

Hope it helps a bit.

Regards,
Jensen


Guru Jois写道:
Guru Jois wrote:

Can我得到一些文档或链接来学习C编译器内部

从基础到高级。它必须包含良好的文档,说明

编译器如何为变量分配内存。
Can I get some docs or links to learn the C compiler internals
from basic to advanced. It must contains good documentation of how
compilers allocates memory to variables.



为什么?


我的意思是,你希望用这些信息解决什么问题?


编译器将内存和寄存器分配给

方式的变量,这将使代码更快或更小,或编译器更容易b / b $ b更容易写,或​​更快,或更小;即使在相同架构的编译器之间,权衡也会有所不同,并且通常可以通过命令行开关控制
;你打算怎么回事?
做的答案是什么?


-

解释刺猬

我们没有时间找到我们想知道的一切。

- James Blish,/一个Cy钹的冲突/

Why?

I mean, what problem do you hope to solve with this information?

Compilers allocate memory -- and registers -- to variables in
ways that will make the code faster, or smaller, or the compiler
easier to write, or faster, or smaller; the tradeoffs differ
even between compilers for the same architecture and can often
be controlled by command-line switches; what are you going to
do with the answer?

--
Interpreting Hedgehog
"We did not have time to find out everything we wanted to know."
- James Blish, /A Clash of Cymbals/




" Guru Jois" < gu ******* @ gmail.comwrote in message

news:11 ********************** @ z28g2000prd.googlegr oups.com ...

"Guru Jois" <gu*******@gmail.comwrote in message
news:11**********************@z28g2000prd.googlegr oups.com...

Hai,


我可以获得一些文档或链接来学习C语言编译器内部

从基本到高级。它必须包含良好的文档,说明

编译器如何为变量分配内存。
Hai,

Can I get some docs or links to learn the C compiler internals
from basic to advanced. It must contains good documentation of how
compilers allocates memory to variables.



阅读有关编译器设计的书籍,虽然这与C

不再相关

read books on compiler design maybe, although that has nothing to with C
anymore

这篇关于C编译器内部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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