Menu

how to remove debugging symbols from project

Dr deo
2009-11-17
2012-09-26
  • Dr deo

    Dr deo - 2009-11-17

    hi,
    i finished a project recently but the size of the executable is still big due
    to debugging symbols. How can i remove them without resorting to command line
    tools like strip.exe (i found this in the directory c:\dev-cpp\bin and i
    managed to get it to do the job)

     
  • Wayne Keen

    Wayne Keen - 2009-11-18

    -g0 as a compile option is the old fashioned way.

    Tangential trivia...

    Keep in mind that code compiled for speed may in fact also be larger due to
    inlining of functions / unrolling of loops etc.

     
  • Wayne Keen

    Wayne Keen - 2009-11-18

    You can also do a strip of the symbol table from the compile option front, I
    beleive

    -s

    is the way it is invoked, but it has been a long time, and I am old
    and short of memory

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.