【问题标题】:What is the compiler directive to generate a detailed map file生成详细地图文件的编译器指令是什么
【发布时间】:2016-04-07 20:31:04
【问题描述】:

我想知道是否有一个编译器指令可以在我的代码中使用(不是来自 UI)来设置编译器/链接器应该生成一个详细的映射文件。

有没有类似的东西:

{$MAPFILE DETAILED}?

我使用的是 Delphi 2009。

【问题讨论】:

    标签: delphi debugging


    【解决方案1】:

    有两种方法可以生成详细的 .map 文件。

    1) 您必须确保设置了{D+} compiler 指令,并且在IDE 的Project >Options>Linker 页面中选择了“Detailed Map File”选项。

    2) 另一个选项是使用 -GD From Delphi command-line compiler

    dcc32.exe -B -DDEBUG -GD yourprojectname.dpr
    

    Delphi Compiler Directives (Embarcadero List)

    Delphi Compiler Directives

        $D      Determines whether application debug information is built
        $DebugInfo  Determines whether application debug information is built
    

    再见。

    【讨论】:

    • 虽然有一个编译器指令列表很好,但它对 this 问题没有用,因为有 no 编译器指令用于指示编译器生成详细的地图文件。请考虑通过删除该无关列表使您的答案更简洁。
    猜你喜欢
    • 1970-01-01
    • 2022-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-18
    • 2017-09-15
    相关资源
    最近更新 更多