为什么 D2007 到 D2010 的行数变化如此之大?

发布于 2024-08-20 09:29:36 字数 318 浏览 5 评论 0原文

我们的应用程序是一个庞大的项目,有 3000 多个单元,大约有 350 万行代码。

...或者至少是当我们在 D2007 下编译它时。我们最近更新到了 D2010,现在如果我们运行完整的构建,行数最终会停止在大约 490 万行。相同的 DPR、相同的代码库、相同的一切,但编译器在构建周期中以某种方式运行了大约 40% 的代码行,这里没有人知道为什么。

只是为了让事情变得更混乱,构建之后,我们可以转到Project ->; IDE 中的信息并报告 380 万行。在D2007中,编译器对话框和项目->信息对话框报告了相同的数字。

有人知道这里发生了什么事吗?

Our app at work is a huge project with over 3000 units, weighing in about 3.5 million lines of code.

...or at least it was when we were compiling it under D2007. We recently updated to D2010, and now if we run a full build, the line count finally stops at about 4.9 million. Same DPR, same code base, same everything, but the compiler's somehow running over about 40% more lines of code in the build cycle and nobody here knows why.

Just to make things more confusing, after building, we can go to Project -> Information in the IDE and it reports 3.8M lines. In D2007, the compiler dialog and the Project -> Information dialog reported the same number.

Anyone have any idea what's going on here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

治碍 2024-08-27 09:29:36

D2010不支持泛型吗?我认为一些库已被泛型取代,如果它计算正在使用的“虚拟”行,则可以解释似乎被解析的额外行。

Doesn't D2010 support generics? I think some of the libs have been replaced by generics, which could account for additional lines that appear to be parsed if it counts the "virtual" lines it's using.

梦途 2024-08-27 09:29:36

看起来这是一个错误。正确的行号仍然报告在项目 |信息。请参阅 Nick 对类似问题的回答。

It looks like it is a bug. The correct line number is still reported under Project | Information. See Nick's answer to a similar question.

通知家属抬走 2024-08-27 09:29:36

我想知道编译器进度区域中用于确定行数的换行/回车的处理是否由于 Unicode 内部结构而变得混乱。

您是否尝试过在 D2009 中进行编译并查看是否表现出相同的奇怪行为?

I wonder if the handling of linefeeds/carriage returns to determine line count in the compiler progress area is getting befuddled somehow as a result of the Unicode internals.

Have you tried compiling in D2009 and seeing if that exhibits the same strange behaviour?

压抑⊿情绪 2024-08-27 09:29:36

难道是因为内联更加激进?

Could it be because it is more aggressive with inlining?

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