10

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?

4

4 回答 4

1

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

于 2010-02-03T09:48:41.890 回答
1

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

于 2010-02-05T06:27:03.107 回答
0

可能是因为它对内联更具侵略性吗?

于 2010-02-03T03:53:48.670 回答
0

我想知道由于 Unicode 内部结构,在编译器进度区域中确定行数的换行符/回车符的处理是否会以某种方式变得混乱。

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

于 2010-02-03T01:50:12.843 回答