www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - compiler flags

reply "Andrew Fedoniouk" <news terrainformatica.com> writes:
Is there any information about following flags, their effects
and symbolic info produced by dmd.exe?

-g
add symbolic debug info
-gt
add trace profiling hooks

Andrew Fedoniouk.
http://terrainformatica.com
Feb 12 2005
parent reply "Walter" <newshound digitalmars.com> writes:
"Andrew Fedoniouk" <news terrainformatica.com> wrote in message
news:cukddo$s3e$1 digitaldaemon.com...
 Is there any information about following flags, their effects
 and symbolic info produced by dmd.exe?

 -g
 add symbolic debug info

It adds codeview symbolic debug info for Windows, and Dwarf symbolic debug info for Linux.
 -gt
 add trace profiling hooks

www.digitalmars.com/ctg/trace.html
 Andrew Fedoniouk.
 http://terrainformatica.com

Feb 12 2005
next sibling parent John Demme <me teqdruid.com> writes:
Walter wrote:
 "Andrew Fedoniouk" <news terrainformatica.com> wrote in message
 news:cukddo$s3e$1 digitaldaemon.com...
 
Is there any information about following flags, their effects
and symbolic info produced by dmd.exe?

-g
add symbolic debug info

It adds codeview symbolic debug info for Windows, and Dwarf symbolic debug info for Linux.

Well... it tries to add the Dwarf symbolic debug info, but it doesn't seem to put the line numbers in correctly, so you still can't do stuff like step through a program, unless you want to step through the assembly. John
Feb 12 2005
prev sibling parent "Andrew Fedoniouk" <news terrainformatica.com> writes:
Thanks a lot, Walter.


"Walter" <newshound digitalmars.com> wrote in message 
news:cukgia$vit$1 digitaldaemon.com...
 "Andrew Fedoniouk" <news terrainformatica.com> wrote in message
 news:cukddo$s3e$1 digitaldaemon.com...
 Is there any information about following flags, their effects
 and symbolic info produced by dmd.exe?

 -g
 add symbolic debug info

It adds codeview symbolic debug info for Windows, and Dwarf symbolic debug info for Linux.
 -gt
 add trace profiling hooks

www.digitalmars.com/ctg/trace.html
 Andrew Fedoniouk.
 http://terrainformatica.com


Feb 13 2005