www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Big debug exe

reply Frank Benoit <keinfarbton googlemail.com> writes:
Hm, i try to build a windows application. Without any special flags to
dmd, its size is about 13 MB. No small, i know.
Now i want to debug this application, and added the -g flag to the
dsss.conf.
The linker runs quit a while, and stops with a disk full message.

The binary size after the abort was 1700MB. I wonder how big it would
have grown, if i had more space. Is that possible? Do i need a bigger
hard disk for my notebook? Is it a bug in the dmd linker, or possibly in
dsss/rebuild?

The compiles obj files sum to 3.8MB, all installed libs in the dsss
directory sum up to 40 MB. The application uses tango/tangobos/swt.
May 07 2007
parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Frank Benoit" <keinfarbton googlemail.com> wrote in message 
news:f1ohl8$2m46$1 digitalmars.com...
 Hm, i try to build a windows application. Without any special flags to
 dmd, its size is about 13 MB. No small, i know.
 Now i want to debug this application, and added the -g flag to the
 dsss.conf.
 The linker runs quit a while, and stops with a disk full message.

 The binary size after the abort was 1700MB. I wonder how big it would
 have grown, if i had more space. Is that possible? Do i need a bigger
 hard disk for my notebook? Is it a bug in the dmd linker, or possibly in
 dsss/rebuild?

 The compiles obj files sum to 3.8MB, all installed libs in the dsss
 directory sum up to 40 MB. The application uses tango/tangobos/swt.

1.7GB? Sounds like a bug to me.
May 07 2007
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
Jarrett Billingsley schrieb:
 1.7GB?  Sounds like a bug to me. 
 
 

Yes, i wonder where to file the bug report? Walter, Gregor or memyselfandi? 'rebuild' does repeat lib names, due to the build system on linux. Can this be a problem with optlink and -g ? The output looks like this: C:\Project\pos>dsss build poseidon\poseidon.d => poseidon.exe + C:\Programme\dsss\bin\rebuild.exe -Idsss_imports\ -I. -S.\ -IC:\Programme\dsss\include\d -SC:\Programme\dsss \lib\ -oqdsss_objs -full -g poseidon\style\xpm.d -ICodeAnalyzer -Ic:\Project\tangobos -S. -I..\tangobos -ll" swt-wgl-win32-3235" -ll"swt-awt-win32-3235" -ll"swt-gdip-win32-3235" -ll"swt-win32-3235" -ll"Stangobos-etc" -l l"Stangobos" -ll"Scrc32" -L/SUBSYSTEM:console:5 poseidon\poseidon.d -ofposeidon.exe Phobos compatibility is currently enabled. This is a time-limted feature intended for short-term convenience. Please do not rely on its indefinite existence. C:\Programme\dmd\dmd\bin\..\..\dm\bin\link.exe dsss_objs\poseidon-style-xpm+dsss_objs\poseidon-poseidon+dsss_o bjs\poseidon-loader+dsss_objs\poseidon-controller-gui+dsss_objs\poseidon-controller-bottompanel+dsss_objs\pose idon-controller-editor+dsss_objs\poseidon-controller-edititem+dsss_objs\poseidon-controller-dialog-askreloaddl g+dsss_objs\poseidon-globals+dsss_objs\poseidon-model-misc+dsss_objs\ak-xml-coreXML+dsss_objs\ak-xml-service+d sss_objs\poseidon-util-fileutil+dsss_objs\poseidon-utility+dsss_objs\poseidon-converter+dsss_objs\poseidon-mod el-project+dsss_objs\poseidon-i18n-translation+dsss_objs\poseidon-util-iniloader+dsss_objs\poseidon-model-edit orsettings+dsss_objs\poseidon-style-stylekeeper+dsss_objs\poseidon-controller-scintillaex+dsss_objs\poseidon-s cintilla+dsss_objs\poseidon-util-xmlutil+dsss_objs\poseidon-style-stylefactory+dsss_objs\poseidon-style-dstyle +dsss_objs\poseidon-style-xmlstyle+dsss_objs\poseidon-resourcemanager+dsss_objs\poseidon-controller-dialog-fin ddlg+dsss_objs\poseidon-i18n-itranslatable+dsss_objs\poseidon-util-miscutil+dsss_objs\poseidon-i18n-i18nshop+d sss_objs\poseidon-controller-dialog-generaldialog+dsss_objs\poseidon-util-layoutshop+dsss_objs\poseidon-contro ller-dialog-searchdlg+dsss_objs\poseidon-controller-packageexplorer+dsss_objs\poseidon-controller-property-prj property+dsss_objs\poseidon-util-waitcursor+dsss_objs\poseidon-model-navcache+dsss_objs\poseidon-controller-ac tionmanager+dsss_objs\poseidon-controller-menumanager+dsss_objs\poseidon-model-executer+dsss_objs\poseidon-con troller-dialog-customtool+dsss_objs\poseidon-controller-property-preference+dsss_objs\poseidon-controller-prop erty-editorpage+dsss_objs\poseidon-controller-property-ipropertypage+dsss_objs\poseidon-controller-property-fo ntstylegroup+dsss_objs\poseidon-controller-property-shortcutpage+dsss_objs\poseidon-controller-property-dpage+ dsss_objs\poseidon-controller-property-generalpage+dsss_objs\poseidon-controller-property-compilerpage+dsss_ob js\poseidon-controller-property-parserpage+dsss_objs\poseidon-controller-dialog-aboutbox+dsss_objs\poseidon-co ntroller-toolbarmanager+dsss_objs\syntax-core+dsss_objs\lexical-tokenized_module+dsss_objs\syntax-node+dsss_ob js\syntax-rule+dsss_objs\syntax-terminal+dsss_objs\lexical-token+dsss_objs\lexical-token_enum+dsss_objs\utilCA -string+dsss_objs\syntax-tokenScanner+dsss_objs\utilCA-scanner+dsss_objs\utilCA-treeUtil+dsss_objs\syntax-tree +dsss_objs\syntax-parsed_module+dsss_objs\syntax-decldefs+dsss_objs\syntax-headers+dsss_objs\syntax-identifier s+dsss_objs\syntax-declarations+dsss_objs\syntax-expressions+dsss_objs\syntax-baseExpressions+dsss_objs\syntax -statements+dsss_objs\syntax-aggregates+dsss_objs\syntax-attributes+dsss_objs\syntax-conditionalCompilation+ds ss_objs\syntax-initializers+dsss_objs\syntax-templates+dsss_objs\syntax-nodeHsu+dsss_objs\lexical-coreLex+dsss _objs\lexical-module_file+dsss_objs\utilCA-textScanner+dsss_objs\lexical-whitespace+dsss_objs\lexical-numbers+ dsss_objs\lexical-identifiersLex+dsss_objs\lexical-token_tables+dsss_objs\lexical-strings+dsss_objs\lexical-op erators+dsss_objs\poseidon-controller-outline+dsss_objs\poseidon-controller-statusbar+dsss_objs\poseidon-intel lisense-autocomplete+dsss_objs\poseidon-intellisense-search+dsss_objs\poseidon-controller-dialog-splash,poseid on.exe,,user32+kernel32/co/noi+SDD-org-eclipse-swt.lib+SDD-dejavu.lib+SDD-org-eclipse-swt.lib+SDD-dejavu.lib+S DD-org-eclipse-swt.lib+SDD-dejavu.lib+SDD-org-eclipse-swt.lib+SDD-dejavu.lib+Stangobos.lib+SDD-org-eclipse-swt .lib+SDD-dejavu.lib+SDD-org-eclipse-swt.lib+SDD-dejavu.lib+SDD-org-eclipse-swt.lib+SDD-dejavu.lib+SDD-org-ecli pse-swt.lib+SDD-dejavu.lib+SDD-org-eclipse-swt.lib+SDD-dejavu.lib+SDD-org-eclipse-swt.lib+SDD-dejavu.lib+SDD-o rg-eclipse-swt.lib+SDD-dejavu.lib+SDD-tango-util.lib+SDD-dejavu.lib+SDD-org-eclipse-swt.lib+SDD-dejavu.lib+SDD -org-eclipse-swt.lib+SDD-dejavu.lib+SDD-tango-math.lib+SDD-tango-stdc.lib+SDD-dejavu.lib+SDD-tango-io.lib+SDD- org-eclipse-swt.lib+SDD-dejavu.lib+SDD-tango-stdc.lib+SDD-dejavu.lib+SDD-tango-core.lib+SDD-tango-stdc.lib+SDD -dejavu.lib+SDD-tango-text.lib+SDD-dejavu.lib+SDD-tango-io.lib+SDD-dejavu.lib+SDD-tango-io.lib+SDD-dejavu.lib+ SDD-tango-io.lib+SDD-tango-util.lib+SDD-tango-core.lib+SDD-tango-io.lib+SDD-dejavu.lib+SDD-tango-io.lib+SDD-ta ngo-sys.lib+SDD-tango-io.lib+SDD-tango-text.lib+SDD-tango-io.lib+SDD-dejavu.lib+SDD-tango-core.lib+SDD-tango-s tdc.lib+SDD-tango-core.lib+Stangobos.lib+Scrc32.lib+Stangobos.lib+Stangobos-etc.lib+swt-win32-3235.lib+swt-gdi p-win32-3235.lib+swt-awt-win32-3235.lib+swt-wgl-win32-3235.lib+.\\+C:\Programme\dsss\lib\\+.\/SUBSYSTEM:consol e:5; --- errorlevel -1073741510 ^C^C^C C:\Project\pos>
May 07 2007
parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Frank Benoit" <keinfarbton googlemail.com> wrote in message 
news:f1oj7l$2oen$1 digitalmars.com...

 Yes, i wonder where to file the bug report? Walter, Gregor or 
 memyselfandi?

Well I'd try to narrow it down as much as possible. Since your program is apparently rather large, you might just try changing how you're compiling it and see if it's rebuild or something. Once (if) you have that eliminated, you can start whittling it down, though that sounds like it'll be one hell of a chore..
May 07 2007
parent Gregor Richards <Richards codu.org> writes:
Jarrett Billingsley wrote:
 "Frank Benoit" <keinfarbton googlemail.com> wrote in message 
 news:f1oj7l$2oen$1 digitalmars.com...
 
 Yes, i wonder where to file the bug report? Walter, Gregor or 
 memyselfandi?

Well I'd try to narrow it down as much as possible. Since your program is apparently rather large, you might just try changing how you're compiling it and see if it's rebuild or something. Once (if) you have that eliminated, you can start whittling it down, though that sounds like it'll be one hell of a chore..

Yeah, I'd say the first step would be to use rebuild -v to generate a compile line, then copy that out and remove repeat libraries etc. - Gregor Richards
May 07 2007