Why does line count change so much from D2007 to D2010?

烂漫一生 提交于 2019-11-30 03:12:43

问题


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?


回答1:


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.




回答2:


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.




回答3:


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?




回答4:


Could it be because it is more aggressive with inlining?



来源:https://stackoverflow.com/questions/2188479/why-does-line-count-change-so-much-from-d2007-to-d2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!