操作系统编译时间
这只是一个一般性问题 - 我正在等待一些软件的编译(我们在这里使用 Incredibuild,但仍然需要 10/15 分钟),这让我想知道,有谁知道编译 Windows XP 需要多长时间还是维斯塔?
我做了一些谷歌搜索,但没有真正找到任何有用的信息
This is just a general question - I was sitting and waiting for a bit of software to compile (we use Incredibuild here but can still take 10/15 mins) and it got me wondering, does anyone know how long it took to compile Windows XP or Vista?
I did some googling but didn't really find any useful information
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
OP正在询问Windows:
来源
另请参阅 Mark Lucovsky 关于开发的经典演示 Windows NT/2000
我不在微软工作,所以我不确定......
OP is asking about Windows:
SOURCE
Also see Mark Lucovsky classic presentation on developing Windows NT/2000.
I don't work at Microsoft, so I don't know for sure...
我掌握的第三手信息是,完成 Windows 构建大约需要一天的时间。 这或多或少与尝试从头开始构建您最喜欢的 OSS 操作系统是一致的。
构建现代操作系统是一项复杂而艰巨的任务。 不需要更长时间的唯一原因是像 Microsoft 这样的公司已经设置了构建环境来帮助自动化集成测试。 因此,与大多数 OSS 构建相比,他们可以用更少的手动工作来构建系统。
如果您想了解构建操作系统所需的知识,我可以推荐免费电子书: Linux from Scratch
要获得更自动化的构建,请尝试 Gentoo。 这两个选项都可以让您更好地了解操作系统构建过程。
Third-hand information I have is that it takes about a day to complete a Windows build. Which is more or less in line with attempting to build your favorite OSS Operating System from scratch.
Building a modern operating system is a complex and difficult task. The only reason why it doesn't take longer is because companies like Microsoft have build environments setup to help automate integration testings. Thus they can build a system with less manual effort than is involved in most OSS builds.
If you've like to get a feel for what it takes to build an operating system, might I recommend the free eBook: Linux from Scratch
For a more automated build, try Gentoo. Both options should give you a better idea of the Operating System build process.
Ales Holecek,Windows 团队开发副总裁说构建 Windows 10 需要大约 16 小时。并且它每天都会自动构建夜晚。
当然,它不是使用单台机器构建的,而是使用一些构建农场。
Ales Holecek, vice president for development in Windows team said that it takes about 16 hours to build Windows 10. And that it's built automatically every day during the night.
It's not built using single machine, of course, but rather using some build farm.
12-24 小时或过夜的答案几乎肯定是正确的。
很久以前,当我在微软工作时,从那以后每次我听到这个词,他们都会“每晚”构建。 (我曾经相当定期地加载 NT 的每日构建。如果我没记错的话,他们每周都会进行一次“检查构建”或类似的操作。)
版本末尾的数字是(或者至少是)这些每日构建增量:
我的 Windows 8.1:
C:\WINDOWS\system32 > 版本
Microsoft Windows [版本 6.3.9600]
将 9600 除以 365 得出大约 26 年的每日构建,或者从 2013 年 8.1/2012-R2 发布开始,到大约 1987 年开始开发NT 与 1993 年发布的 Windows NT 3.1。
The answers that say 12-24 hours or overnight are almost certainly correct.
Long ago when I was at Microsoft and every time I've heard it since, they build 'every night'. (I used to load daily builds of NT fairly regularly. If I recall correclty, they did a "checked build" weekly or some such.)
Those numbers on the end of the version are (or at least WERE) these daily build increments:
My windows 8.1:
C:\WINDOWS\system32 > ver
Microsoft Windows [Version 6.3.9600]
Dividing 9600 by 365 gives about 26 years of daily builds, or going back from 2013 when 8.1/2012-R2 released, arrives at about 1987 for the start of development on NT with Windows NT 3.1 released in 1993.
好吧,您自己尝试一下:获取 Gentoo(或其他 Linux)发行版或尝试 Microsoft Research 的 Singularity 项目。 另一个有趣的替代方案是 ReactOS 项目。 仅编译内核就需要等待程序大约 15 分钟(取决于机器)。 编译整个系统需要相当更长的时间!
Well, try it out yourself: Grab a Gentoo (or other Linux) distro or try out the Singularity project from Microsoft Research. Another interesting alternative is the ReactOS project. Compiling the kernel alone takes (depending on the machine) about the 15 minutes you've waited for your program. Compiling the whole system takes considerably longer!
我记得听说 Vista 花了一天多的时间来构建(不过现在找不到参考资料了,唉)。 它有 5000 万行代码 到它。
I remember hearing that Vista took somewhere along the lines of more than a day to build (can't find a reference now though, argh). It has somewhere in the neighborhood of 50 million lines of code to it.
需要多长时间实际上取决于构建设置,我真的怀疑 Vista 工程师是否需要一天来构建代码,即使在单台机器上需要一天。
我从事一个类似规模的项目,直到最近,在共享多处理器 sun 服务器上构建可能需要长达 12 个小时。 由于我们已经切换到基于 Linux 的构建场,干净的构建可以在不到一个小时的时间内完成,并在几分钟内重建。
了解 Vista 人员正在使用什么设置会很有趣,基于 Linux 的构建农场似乎不太可能......那么也许基于 Windows 的构建农场:)
How long it takes will really depend on the build set up, I really doubt that the Vista engineers need a day to build the code even if it would take a day on a single machine.
I work on a project of a similar scale and until recently builds could take up to 12 hours on a shared multiprocessor sun server. Since we have switched to a Linux based build farm a clean build can happen in less than an hour and rebuilds in a few minutes.
It would be interesting to know what set up the Vista guys are using, Linux based build farms seem unlikely... maybe Windows based build farms then :)
我不知道编译XP需要多长时间,但是10/15分钟根本不是那么长。
我们的项目包含 Linux 内核作为组件之一(不是最大的组件),编译需要大约一个小时。 我们通过使用 ccache 对此进行了改进,现在只需要几分钟。
不完全是您问题的答案,但我认为它可能相关/有用。
I don't know how long is taking to compile XP, but 10/15 minutes is not so big at all.
Our project that include Linux kernel as one of the components (not the biggest) was taking about a hour to compile. We improved this by using ccache and now it's taking only few minutes.
Not exactly the answer to your question but i though it's might be relevant/useful.