操作系统编译时间

发布于 2024-07-07 12:43:04 字数 142 浏览 10 评论 0原文

这只是一个一般性问题 - 我正在等待一些软件的编译(我们在这里使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

只是一片海 2024-07-14 12:43:04

OP正在询问Windows

“没有其他软件项目
就像这样,” Lucovsky 说,“但是
有一件事保持不变
[多年来] 需要多长时间
构建[Windows]。 无论哪一个
产品的一代,需要12
编译和链接系统的时间。

即使加工量增加
多年来,Windows 已经
成长以匹配,并发展
过程变得更加
复杂,所以微软做到了
更多代码分析作为
每日构建。 “构建中的 CPU
实验室持续固定为 12
小时,”他说。“我们已经调整了
自 Windows 2000 以来的过程。现在,我们
将源代码树分解为
独立的源代码树,并使用
新的构建环境。 它是
多机环境让我们
更快地转动曲柄。 但因为
所有新的代码分析,它仍然
需要 12 个小时。”

来源

另请参阅 Mark Lucovsky 关于开发的经典演示 Windows NT/2000

我不在微软工作,所以我不确定......

OP is asking about Windows:

"There are no other software projects
like this," Lucovsky said, "but the
one thing that's remained constant
[over the years] is how long it takes
to build [Windows]. No matter which
generation of the product, it takes 12
hours to compile and link the system.
"
Even with the increase in processing
horsepower over the years, Windows has
grown to match, and the development
process has become far more
sophisticated, so that Microsoft does
more code analysis as part of the
daily build. "The CPUs in the build
lab are pegged constantly for 12
hours," he said. "We've adapted the
process since Windows 2000. Now, we
decompose the source [code] tree into
independent source trees, and use a
new build environment. It's a
multi-machine environment that lets us
turn the crank faster. But because of
all the new code analysis, it still
takes 12 hours."

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...

娇俏 2024-07-14 12:43:04

我掌握的第三手信息是,完成 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.

隱形的亼 2024-07-14 12:43:04

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.

你如我软肋 2024-07-14 12:43:04

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.

┼── 2024-07-14 12:43:04

好吧,您自己尝试一下:获取 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!

天赋异禀 2024-07-14 12:43:04

我记得听说 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.

呆橘 2024-07-14 12:43:04

需要多长时间实际上取决于构建设置,我真的怀疑 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 :)

救星 2024-07-14 12:43:04

我不知道编译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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文