Jamesj999 Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hypertown@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

Of course

lemmy.world

message-square
145
fedilink
1.62K

Of course

lemmy.world

hypertown@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
145
fedilink
  • Valmond@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Whoo that seems complicated, I mean you akready compile a debug version.

    Thanks for the explanation!

    • A Basil Plant@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      2 years ago

      The debug version you compile doesn’t affect the code; it just stores more information about symbols. The whole shtick about the debugger replacing instructions with INT3 still happens.

      You can validate that the code isn’t affected yourself by running objdump on two binaries, one compiled with debug symbols and one without. Otherwise if you’re lazy (like me 😄):

      https://stackoverflow.com/a/8676610

      And for completeness: https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Debugging-Options.html

      • Valmond@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Thanks, excellent information!

        How come debug exes are bigger? Is the nifty stuff tucked on at the end?

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 161 users / day
  • 887 users / week
  • 2.22K users / month
  • 7.12K users / 6 months
  • 1 local subscriber
  • 39.6K subscribers
  • 1.93K Posts
  • 40K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org