Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the compiler directive to generate a detailed map file

I wish to know is there a compiler directive which I can use in my code (not from the UI) to set that the compiler/linker should generate a detailed map file.

Is there something like:

{$MAPFILE DETAILED}?

I am using Delphi 2009.

like image 897
Gad D Lord Avatar asked Sep 15 '09 22:09

Gad D Lord


1 Answers

There are 2 ways to generate a detailed .map file.

1) you must ensure the {D+} compiler directive is set, and the "Detailed Map File" option selected in the Project >Options>Linker page of the IDE.

2) Another option is using -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

Bye.

like image 177
RRUZ Avatar answered Sep 21 '22 22:09

RRUZ