Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6022933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:55:50+00:00 2026-05-23T03:55:50+00:00

Delphi documentation says that Debug information […] it does not affect the size or

  • 0

Delphi documentation says that
“Debug information […] it does not affect the size or speed of the executable program.”

However, when I activate Debug information (in Project Options -> Linker) my EXE goes from 1.8MB to 7MB.
What am I doing wrong?


Note: I suppose that the ‘Debug information’ under ‘Linking’ is the same as ‘Debug information’ under ‘Compiling’ since they have the same compiler directive ( {$D} ).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:55:51+00:00Added an answer on May 23, 2026 at 3:55 am

    Your assumption is incorrect. Compiling with debug information means that the compiler generates DCUs with debug information. Linking with debug information means that the linker puts the debug info from the DCUs into the final binary instead of stripping it out, so of course that will make the binary a lot bigger.

    Linking without debug info is usually OK, since the debugger can get at the debug info in the DCUs as long as it can find them. But if you need to debug your app in some scenario where the DCUs won’t be available, you’ll want the link option turned on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Microsoft already says, in the documentation for GetTickCount, that you could never compare tick
does the new Delphi IDE (2009) come with some documentation ? (kind of like
Should Library path point to the source files of packages? Delphi 7 documentation says
Is there any documentation on cross thread communication in Delphi? How can I send
Delphi has a $WARN compiler directive that allows one to selectively enable or disable
Delphi strings use single quotes, for example ' a valid string '. How does
In Delphi, I want to be able to create an private object that's associated
The SimpleDB documentation includes this example request for a ListDomains method. Note that there
I have associated a file extension with my Delphi 2009 program. I have been
Is there an equivalent in Delphi? I've looked over the documentation and can't find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.