为什么编译需要这么长时间? [英] Why do compilations take so long?

查看:212
本文介绍了为什么编译需要这么长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个编程语言,我想到的问题之一是为什么编程语言需要很长时间来编译。假设的c ++需要很长时间,因为它需要在每次编译头文件时解析和编译头文件。但是我的预编译头需要多长时间?我怀疑c ++不是唯一有这个问题的语言。

I am designing a programming language and one of the problems i was thinking was why do programming languages take long to compile. Assumed c++ takes a long time because it needs to parse and compile a header everytime it compiles a file. But i -heard- precompiled headers take as long? i suspect c++ is not the only language that has this problem.

推荐答案

一个C ++的具体问题,不像几乎任何其他语言,你不能独立于语义分析来解析它。

One C++ specific problem that makes it horribly slow is that, unlike almost any other language, you can't parse it independently of semantic analysis.

这篇关于为什么编译需要这么长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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