Author Topic: CB Compile time  (Read 4769 times)

Offline comsytec

  • Multiple posting newcomer
  • *
  • Posts: 58
    • www.comsytec.com
CB Compile time
« on: February 07, 2013, 04:45:42 pm »
How long takes to compile CB for MSW with GCC ? To me seems GCC 4.7.1 is significantly slower than GCC 3.4.5.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CB Compile time
« Reply #1 on: February 08, 2013, 04:38:46 pm »
That's hard/impossible to answer. A completely fresh build can take anywhere from under 3 minutes to 20 minutes (45+ minutes if you enable LTO).

This totally depends on
  • your disk access time and bandwidth
  • CPU speed
  • main memory
  • antivirus software
  • optimization options

Any of the above can make a +/- 50% difference.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline comsytec

  • Multiple posting newcomer
  • *
  • Posts: 58
    • www.comsytec.com
Re: CB Compile time
« Reply #2 on: February 13, 2013, 08:47:17 am »
Have you fallen into trouble linking wxWidgets due to exhausted memory ? This happens to me with TDM-GCC 4.7.1 but not with GCC 3.4.5. I know this to forum about wxWidgets but it is used for the CB so I ask.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12691
    • Travis build status
Re: CB Compile time
« Reply #3 on: February 13, 2013, 09:07:58 am »
Search the forum, I think this is discussed in other topics (probably the TDM topics).
I think you need monolithic or non-monolitic builds (depends on what you're currently using, you need the opposite config)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline comsytec

  • Multiple posting newcomer
  • *
  • Posts: 58
    • www.comsytec.com
Re: CB Compile time
« Reply #4 on: February 13, 2013, 10:31:11 am »
I have solved the trouble of linking of wxWidgets monolithic build with TDM-GCC 4.7.1 using incremental link for LD.
Not the ideal state but for me helped. The 1st step still consuming lot of memory but not fails. If fail I think can
be split into intermediate steps. See this the bash script.

Code: [Select]
#!/bin/sh
echo Linking wxmsw28u_gcc_cb.o
c:/MinGW32/bin/ld \
-r \
-o wxmsw28u_gcc_cb.o \
gcc_mswudll/monodll_dummy.o \
gcc_mswudll/monodll_version_rc.o \
gcc_mswudll/monodll_appbase.o \
gcc_mswudll/monodll_arcall.o \
gcc_mswudll/monodll_arcfind.o \
gcc_mswudll/monodll_archive.o \
gcc_mswudll/monodll_clntdata.o \
gcc_mswudll/monodll_cmdline.o \
gcc_mswudll/monodll_config.o \
gcc_mswudll/monodll_convauto.o \
gcc_mswudll/monodll_datetime.o \
gcc_mswudll/monodll_datstrm.o \
gcc_mswudll/monodll_dircmn.o \
gcc_mswudll/monodll_dynarray.o \
gcc_mswudll/monodll_dynlib.o \
gcc_mswudll/monodll_dynload.o \
gcc_mswudll/monodll_encconv.o \
gcc_mswudll/monodll_extended.o \
gcc_mswudll/monodll_ffile.o \
gcc_mswudll/monodll_file.o \
gcc_mswudll/monodll_fileback.o \
gcc_mswudll/monodll_fileconf.o \
gcc_mswudll/monodll_filefn.o \
gcc_mswudll/monodll_filename.o \
gcc_mswudll/monodll_filesys.o \
gcc_mswudll/monodll_filtall.o \
gcc_mswudll/monodll_filtfind.o \
gcc_mswudll/monodll_fmapbase.o \
gcc_mswudll/monodll_fs_arc.o \
gcc_mswudll/monodll_fs_filter.o \
gcc_mswudll/monodll_hash.o \
gcc_mswudll/monodll_hashmap.o \
gcc_mswudll/monodll_init.o \
gcc_mswudll/monodll_intl.o \
gcc_mswudll/monodll_ipcbase.o \
gcc_mswudll/monodll_list.o \
gcc_mswudll/monodll_log.o \
gcc_mswudll/monodll_longlong.o \
gcc_mswudll/monodll_memory.o \
gcc_mswudll/monodll_mimecmn.o \
gcc_mswudll/monodll_module.o \
gcc_mswudll/monodll_mstream.o \
gcc_mswudll/monodll_object.o \
gcc_mswudll/monodll_platinfo.o \
gcc_mswudll/monodll_powercmn.o \
gcc_mswudll/monodll_process.o \
gcc_mswudll/monodll_regex.o \
gcc_mswudll/monodll_stdpbase.o \
gcc_mswudll/monodll_sstream.o \
gcc_mswudll/monodll_stopwatch.o \
gcc_mswudll/monodll_strconv.o \
gcc_mswudll/monodll_stream.o \
gcc_mswudll/monodll_string.o \
gcc_mswudll/monodll_sysopt.o \
gcc_mswudll/monodll_tarstrm.o \
gcc_mswudll/monodll_textbuf.o \
gcc_mswudll/monodll_textfile.o \
gcc_mswudll/monodll_tokenzr.o \
gcc_mswudll/monodll_txtstrm.o \
gcc_mswudll/monodll_uri.o \
gcc_mswudll/monodll_variant.o \
gcc_mswudll/monodll_wfstream.o \
gcc_mswudll/monodll_wxchar.o \
gcc_mswudll/monodll_xti.o \
gcc_mswudll/monodll_xtistrm.o \
gcc_mswudll/monodll_zipstrm.o \
gcc_mswudll/monodll_zstream.o \
gcc_mswudll/monodll_basemsw.o \
gcc_mswudll/monodll_crashrpt.o \
gcc_mswudll/monodll_debughlp.o \
gcc_mswudll/monodll_dde.o \
gcc_mswudll/monodll_dir.o \
gcc_mswudll/monodll_dlmsw.o \
gcc_mswudll/monodll_mimetype.o \
gcc_mswudll/monodll_power.o \
gcc_mswudll/monodll_regconf.o \
gcc_mswudll/monodll_registry.o \
gcc_mswudll/monodll_snglinst.o \
gcc_mswudll/monodll_stackwalk.o \
gcc_mswudll/monodll_stdpaths.o \
gcc_mswudll/monodll_thread.o \
gcc_mswudll/monodll_utils.o \
gcc_mswudll/monodll_utilsexc.o \
gcc_mswudll/monodll_event.o \
gcc_mswudll/monodll_fs_mem.o \
gcc_mswudll/monodll_msgout.o \
gcc_mswudll/monodll_utilscmn.o \
gcc_mswudll/monodll_main.o \
gcc_mswudll/monodll_mslu.o \
gcc_mswudll/monodll_volume.o \
gcc_mswudll/monodll_fs_inet.o \
gcc_mswudll/monodll_ftp.o \
gcc_mswudll/monodll_http.o \
gcc_mswudll/monodll_protocol.o \
gcc_mswudll/monodll_sckaddr.o \
gcc_mswudll/monodll_sckfile.o \
gcc_mswudll/monodll_sckipc.o \
gcc_mswudll/monodll_sckstrm.o \
gcc_mswudll/monodll_socket.o \
gcc_mswudll/monodll_url.o \
gcc_mswudll/monodll_gsocket.o \
gcc_mswudll/monodll_urlmsw.o \
gcc_mswudll/monodll_app.o \
gcc_mswudll/monodll_bitmap.o \
gcc_mswudll/monodll_brush.o \
gcc_mswudll/monodll_caret.o \
gcc_mswudll/monodll_clipbrd.o \
gcc_mswudll/monodll_colour.o \
gcc_mswudll/monodll_cursor.o \
gcc_mswudll/monodll_data.o \
gcc_mswudll/monodll_dc.o \
gcc_mswudll/monodll_dcclient.o \
gcc_mswudll/monodll_dcmemory.o \
gcc_mswudll/monodll_dcprint.o \
gcc_mswudll/monodll_dcscreen.o \
gcc_mswudll/monodll_dialup.o \
gcc_mswudll/monodll_dib.o \
gcc_mswudll/monodll_display.o \
gcc_mswudll/monodll_enhmeta.o \
gcc_mswudll/monodll_evtloop.o \
gcc_mswudll/monodll_font.o \
gcc_mswudll/monodll_fontenum.o \
gcc_mswudll/monodll_fontutil.o \
gcc_mswudll/monodll_gdiimage.o \
gcc_mswudll/monodll_gdiobj.o \
gcc_mswudll/monodll_graphics.o \
gcc_mswudll/monodll_gsockmsw.o \
gcc_mswudll/monodll_icon.o \
gcc_mswudll/monodll_imaglist.o \
gcc_mswudll/monodll_minifram.o \
gcc_mswudll/monodll_dataobj.o \
gcc_mswudll/monodll_dropsrc.o \
gcc_mswudll/monodll_droptgt.o \
gcc_mswudll/monodll_oleutils.o \
gcc_mswudll/monodll_palette.o \
gcc_mswudll/monodll_pen.o \
gcc_mswudll/monodll_popupwin.o \
gcc_mswudll/monodll_printdlg.o \
gcc_mswudll/monodll_printwin.o \
gcc_mswudll/monodll_region.o \
gcc_mswudll/monodll_renderer.o \
gcc_mswudll/monodll_settings.o \
gcc_mswudll/monodll_timer.o \
gcc_mswudll/monodll_tooltip.o \
gcc_mswudll/monodll_toplevel.o \
gcc_mswudll/monodll_utilsgui.o \
gcc_mswudll/monodll_uxtheme.o \
gcc_mswudll/monodll_window.o \
gcc_mswudll/monodll_helpchm.o \
gcc_mswudll/monodll_helpwin.o \
gcc_mswudll/monodll_automtn.o \
gcc_mswudll/monodll_uuid.o \
gcc_mswudll/monodll_generic_statusbr.o \
gcc_mswudll/monodll_prntdlgg.o \
gcc_mswudll/monodll_msw_accel.o \
gcc_mswudll/monodll_msw_bmpbuttn.o \
gcc_mswudll/monodll_msw_button.o \
gcc_mswudll/monodll_msw_checkbox.o \
gcc_mswudll/monodll_msw_choice.o \
gcc_mswudll/monodll_colordlg.o \
gcc_mswudll/monodll_combo.o \
gcc_mswudll/monodll_msw_combobox.o \
gcc_mswudll/monodll_msw_control.o \
gcc_mswudll/monodll_msw_dialog.o \
gcc_mswudll/monodll_dirdlg.o \
gcc_mswudll/monodll_dragimag.o \
gcc_mswudll/monodll_filedlg.o \
gcc_mswudll/monodll_frame.o \
gcc_mswudll/monodll_gauge95.o \
gcc_mswudll/monodll_iniconf.o \
gcc_mswudll/monodll_msw_listbox.o \
gcc_mswudll/monodll_msw_listctrl.o \
gcc_mswudll/monodll_mdi.o \
gcc_mswudll/monodll_msw_menu.o \
gcc_mswudll/monodll_menuitem.o \
gcc_mswudll/monodll_metafile.o \
gcc_mswudll/monodll_msgdlg.o \
gcc_mswudll/monodll_nativdlg.o \
gcc_mswudll/monodll_msw_notebook.o \
gcc_mswudll/monodll_access.o \
gcc_mswudll/monodll_ownerdrw.o \
gcc_mswudll/monodll_msw_radiobox.o \
gcc_mswudll/monodll_msw_radiobut.o \
gcc_mswudll/monodll_msw_scrolbar.o \
gcc_mswudll/monodll_slider95.o \
gcc_mswudll/monodll_msw_spinbutt.o \
gcc_mswudll/monodll_spinctrl.o \
gcc_mswudll/monodll_msw_statbmp.o \
gcc_mswudll/monodll_msw_statbox.o \
gcc_mswudll/monodll_statbr95.o \
gcc_mswudll/monodll_msw_statline.o \
gcc_mswudll/monodll_msw_stattext.o \
gcc_mswudll/monodll_tabctrl.o \
gcc_mswudll/monodll_tbar95.o \
gcc_mswudll/monodll_msw_textctrl.o \
gcc_mswudll/monodll_msw_tglbtn.o \
gcc_mswudll/monodll_treectrl.o \
gcc_mswudll/monodll_msw_checklst.o \
gcc_mswudll/monodll_msw_fdrepdlg.o \
gcc_mswudll/monodll_fontdlg.o \
gcc_mswudll/monodll_accesscmn.o \
gcc_mswudll/monodll_anidecod.o \
gcc_mswudll/monodll_appcmn.o \
gcc_mswudll/monodll_artprov.o \
gcc_mswudll/monodll_artstd.o \
gcc_mswudll/monodll_bmpbase.o \
gcc_mswudll/monodll_bookctrl.o \
gcc_mswudll/monodll_choiccmn.o \
gcc_mswudll/monodll_clipcmn.o \
gcc_mswudll/monodll_clrpickercmn.o \
gcc_mswudll/monodll_colourcmn.o \
gcc_mswudll/monodll_combocmn.o \
gcc_mswudll/monodll_cmdproc.o \
gcc_mswudll/monodll_cmndata.o \
gcc_mswudll/monodll_containr.o \
gcc_mswudll/monodll_cshelp.o \
gcc_mswudll/monodll_ctrlcmn.o \
gcc_mswudll/monodll_ctrlsub.o \
gcc_mswudll/monodll_datacmn.o \
gcc_mswudll/monodll_dcbase.o \
gcc_mswudll/monodll_dcbufcmn.o \
gcc_mswudll/monodll_dcgraph.o \
gcc_mswudll/monodll_dlgcmn.o \
gcc_mswudll/monodll_dndcmn.o \
gcc_mswudll/monodll_dobjcmn.o \
gcc_mswudll/monodll_docmdi.o \
gcc_mswudll/monodll_docview.o \
gcc_mswudll/monodll_dpycmn.o \
gcc_mswudll/monodll_dseldlg.o \
gcc_mswudll/monodll_effects.o \
gcc_mswudll/monodll_evtloopcmn.o \
gcc_mswudll/monodll_fddlgcmn.o \
gcc_mswudll/monodll_filepickercmn.o \
gcc_mswudll/monodll_fontpickercmn.o \
gcc_mswudll/monodll_fldlgcmn.o \
gcc_mswudll/monodll_fontcmn.o \
gcc_mswudll/monodll_fontenumcmn.o \
gcc_mswudll/monodll_fontmap.o \
gcc_mswudll/monodll_framecmn.o \
gcc_mswudll/monodll_gaugecmn.o \
gcc_mswudll/monodll_gbsizer.o \
gcc_mswudll/monodll_gdicmn.o \
gcc_mswudll/monodll_geometry.o \
gcc_mswudll/monodll_gifdecod.o \
gcc_mswudll/monodll_graphcmn.o \
gcc_mswudll/monodll_helpbase.o \
gcc_mswudll/monodll_iconbndl.o \
gcc_mswudll/monodll_imagall.o \
gcc_mswudll/monodll_imagbmp.o \
gcc_mswudll/monodll_image.o \
gcc_mswudll/monodll_imagfill.o \
gcc_mswudll/monodll_imaggif.o \
gcc_mswudll/monodll_imagiff.o \
gcc_mswudll/monodll_imagjpeg.o \
gcc_mswudll/monodll_imagpcx.o \
gcc_mswudll/monodll_imagpng.o \
gcc_mswudll/monodll_imagpnm.o \
gcc_mswudll/monodll_imagtga.o \
gcc_mswudll/monodll_imagtiff.o \
gcc_mswudll/monodll_imagxpm.o \
gcc_mswudll/monodll_layout.o \
gcc_mswudll/monodll_lboxcmn.o \
gcc_mswudll/monodll_listctrlcmn.o \
gcc_mswudll/monodll_matrix.o \
gcc_mswudll/monodll_menucmn.o \
gcc_mswudll/monodll_nbkbase.o \
gcc_mswudll/monodll_overlaycmn.o \
gcc_mswudll/monodll_paper.o \
gcc_mswudll/monodll_pickerbase.o \
gcc_mswudll/monodll_popupcmn.o \
gcc_mswudll/monodll_prntbase.o \
gcc_mswudll/monodll_quantize.o \
gcc_mswudll/monodll_radiocmn.o \
gcc_mswudll/monodll_rendcmn.o \
gcc_mswudll/monodll_rgncmn.o \
gcc_mswudll/monodll_settcmn.o \
gcc_mswudll/monodll_sizer.o \
gcc_mswudll/monodll_srchcmn.o \
gcc_mswudll/monodll_statbar.o \
gcc_mswudll/monodll_stockitem.o \
gcc_mswudll/monodll_tbarbase.o \
gcc_mswudll/monodll_textcmn.o \
gcc_mswudll/monodll_timercmn.o \
gcc_mswudll/monodll_toplvcmn.o \
gcc_mswudll/monodll_treebase.o \
gcc_mswudll/monodll_valgen.o \
gcc_mswudll/monodll_validate.o \
gcc_mswudll/monodll_valtext.o \
gcc_mswudll/monodll_wincmn.o \
gcc_mswudll/monodll_xpmdecod.o \
gcc_mswudll/monodll_busyinfo.o \
gcc_mswudll/monodll_buttonbar.o \
gcc_mswudll/monodll_choicdgg.o \
gcc_mswudll/monodll_choicbkg.o \
gcc_mswudll/monodll_clrpickerg.o \
gcc_mswudll/monodll_collpaneg.o \
gcc_mswudll/monodll_combog.o \
gcc_mswudll/monodll_dcpsg.o \
gcc_mswudll/monodll_dirctrlg.o \
gcc_mswudll/monodll_dragimgg.o \
gcc_mswudll/monodll_filepickerg.o \
gcc_mswudll/monodll_fontpickerg.o \
gcc_mswudll/monodll_graphicc.o \
gcc_mswudll/monodll_listbkg.o \
gcc_mswudll/monodll_logg.o \
gcc_mswudll/monodll_numdlgg.o \
gcc_mswudll/monodll_panelg.o \
gcc_mswudll/monodll_progdlgg.o \
gcc_mswudll/monodll_printps.o \
gcc_mswudll/monodll_renderg.o \
gcc_mswudll/monodll_scrlwing.o \
gcc_mswudll/monodll_selstore.o \
gcc_mswudll/monodll_spinctlg.o \
gcc_mswudll/monodll_splitter.o \
gcc_mswudll/monodll_srchctlg.o \
gcc_mswudll/monodll_textdlgg.o \
gcc_mswudll/monodll_tipwin.o \
gcc_mswudll/monodll_toolbkg.o \
gcc_mswudll/monodll_treectlg.o \
gcc_mswudll/monodll_treebkg.o \
gcc_mswudll/monodll_vlbox.o \
gcc_mswudll/monodll_vscroll.o \
gcc_mswudll/monodll_animatecmn.o \
gcc_mswudll/monodll_datavcmn.o \
gcc_mswudll/monodll_aboutdlgg.o \
gcc_mswudll/monodll_animateg.o \
gcc_mswudll/monodll_bmpcboxg.o \
gcc_mswudll/monodll_calctrl.o \
gcc_mswudll/monodll_datavgen.o \
gcc_mswudll/monodll_datectlg.o \
gcc_mswudll/monodll_grid.o \
gcc_mswudll/monodll_gridctrl.o \
gcc_mswudll/monodll_gridsel.o \
gcc_mswudll/monodll_helpext.o \
gcc_mswudll/monodll_hyperlink.o \
gcc_mswudll/monodll_laywin.o \
gcc_mswudll/monodll_odcombo.o \
gcc_mswudll/monodll_propdlg.o \
gcc_mswudll/monodll_sashwin.o \
gcc_mswudll/monodll_splash.o \
gcc_mswudll/monodll_tipdlg.o \
gcc_mswudll/monodll_wizard.o \
gcc_mswudll/monodll_taskbarcmn.o \
gcc_mswudll/monodll_aboutdlg.o \
gcc_mswudll/monodll_sound.o \
gcc_mswudll/monodll_taskbar.o \
gcc_mswudll/monodll_joystick.o \
gcc_mswudll/monodll_datectrl.o \
gcc_mswudll/monodll_mediactrlcmn.o \
gcc_mswudll/monodll_mediactrl_am.o \
gcc_mswudll/monodll_mediactrl_wmp10.o \
gcc_mswudll/monodll_mediactrl_qt.o \
gcc_mswudll/monodll_activex.o \
gcc_mswudll/monodll_helpbest.o \
gcc_mswudll/monodll_helpctrl.o \
gcc_mswudll/monodll_helpdata.o \
gcc_mswudll/monodll_helpdlg.o \
gcc_mswudll/monodll_helpfrm.o \
gcc_mswudll/monodll_helpwnd.o \
gcc_mswudll/monodll_htmlcell.o \
gcc_mswudll/monodll_htmlfilt.o \
gcc_mswudll/monodll_htmlpars.o \
gcc_mswudll/monodll_htmltag.o \
gcc_mswudll/monodll_htmlwin.o \
gcc_mswudll/monodll_htmprint.o \
gcc_mswudll/monodll_m_dflist.o \
gcc_mswudll/monodll_m_fonts.o \
gcc_mswudll/monodll_m_hline.o \
gcc_mswudll/monodll_m_image.o \
gcc_mswudll/monodll_m_layout.o \
gcc_mswudll/monodll_m_links.o \
gcc_mswudll/monodll_m_list.o \
gcc_mswudll/monodll_m_pre.o \
gcc_mswudll/monodll_m_style.o \
gcc_mswudll/monodll_m_tables.o \
gcc_mswudll/monodll_winpars.o \
gcc_mswudll/monodll_htmllbox.o \
gcc_mswudll/monodll_db.o \
gcc_mswudll/monodll_dbtable.o \
gcc_mswudll/monodll_debugrpt.o \
gcc_mswudll/monodll_dbgrptg.o \
gcc_mswudll/monodll_dbgrid.o \
gcc_mswudll/monodll_xh_animatctrl.o \
gcc_mswudll/monodll_xh_bmp.o \
gcc_mswudll/monodll_xh_bmpcbox.o \
gcc_mswudll/monodll_xh_bmpbt.o \
gcc_mswudll/monodll_xh_bttn.o \
gcc_mswudll/monodll_xh_cald.o \
gcc_mswudll/monodll_xh_chckb.o \
gcc_mswudll/monodll_xh_chckl.o \
gcc_mswudll/monodll_xh_choic.o \
gcc_mswudll/monodll_xh_choicbk.o \
gcc_mswudll/monodll_xh_clrpicker.o \
gcc_mswudll/monodll_xh_collpane.o \
gcc_mswudll/monodll_xh_combo.o \
gcc_mswudll/monodll_xh_datectrl.o \
gcc_mswudll/monodll_xh_dirpicker.o \
gcc_mswudll/monodll_xh_dlg.o \
gcc_mswudll/monodll_xh_frame.o \
gcc_mswudll/monodll_xh_mdi.o \
gcc_mswudll/monodll_xh_filepicker.o \
gcc_mswudll/monodll_xh_fontpicker.o \
gcc_mswudll/monodll_xh_gauge.o \
gcc_mswudll/monodll_xh_gdctl.o \
gcc_mswudll/monodll_xh_grid.o \
gcc_mswudll/monodll_xh_html.o \
gcc_mswudll/monodll_xh_hyperlink.o \
gcc_mswudll/monodll_xh_listb.o \
gcc_mswudll/monodll_xh_listbk.o \
gcc_mswudll/monodll_xh_listc.o \
gcc_mswudll/monodll_xh_menu.o \
gcc_mswudll/monodll_xh_notbk.o \
gcc_mswudll/monodll_xh_odcombo.o \
gcc_mswudll/monodll_xh_panel.o \
gcc_mswudll/monodll_xh_propdlg.o \
gcc_mswudll/monodll_xh_radbt.o \
gcc_mswudll/monodll_xh_radbx.o \
gcc_mswudll/monodll_xh_scrol.o \
gcc_mswudll/monodll_xh_scwin.o \
gcc_mswudll/monodll_xh_htmllbox.o \
gcc_mswudll/monodll_xh_sizer.o \
gcc_mswudll/monodll_xh_slidr.o \
gcc_mswudll/monodll_xh_spin.o \
gcc_mswudll/monodll_xh_split.o \
gcc_mswudll/monodll_xh_statbar.o \
gcc_mswudll/monodll_xh_stbmp.o \
gcc_mswudll/monodll_xh_stbox.o \
gcc_mswudll/monodll_xh_stlin.o \
gcc_mswudll/monodll_xh_sttxt.o \
gcc_mswudll/monodll_xh_text.o \
gcc_mswudll/monodll_xh_tglbtn.o \
gcc_mswudll/monodll_xh_toolb.o \
gcc_mswudll/monodll_xh_tree.o \
gcc_mswudll/monodll_xh_treebk.o \
gcc_mswudll/monodll_xh_unkwn.o \
gcc_mswudll/monodll_xh_wizrd.o \
gcc_mswudll/monodll_xmlres.o \
gcc_mswudll/monodll_xmlrsall.o \
gcc_mswudll/monodll_framemanager.o \
gcc_mswudll/monodll_dockart.o \
gcc_mswudll/monodll_floatpane.o \
gcc_mswudll/monodll_auibook.o \
gcc_mswudll/monodll_tabmdi.o \
gcc_mswudll/monodll_auibar.o \
gcc_mswudll/monodll_richtextctrl.o \
gcc_mswudll/monodll_richtextbuffer.o \
gcc_mswudll/monodll_richtextstyles.o \
gcc_mswudll/monodll_richtextxml.o \
gcc_mswudll/monodll_richtexthtml.o \
gcc_mswudll/monodll_richtextformatdlg.o \
gcc_mswudll/monodll_richtextsymboldlg.o \
gcc_mswudll/monodll_richtextstyledlg.o \
gcc_mswudll/monodll_richtextprint.o \
gcc_mswudll/monodll_xml.o \
gcc_mswudll/monodll_xtixml.o

echo Linking wxmsw28u_gcc_cb.dll
#c:/MinGW32/bin/ld \
c:/MinGW32/libexec/gcc/mingw32/4.7.1/collect2 \
-debug \
--shared \
-Bdynamic \
-e [email protected] \
--enable-auto-image-base \
-u ___register_frame_info \
-u ___deregister_frame_info \
-o ../../lib/gcc_dll/wxmsw28u_gcc_cb.dll \
--out-implib=../../lib/gcc_dll/libwxmsw28u.a \
-L../../lib/gcc_dll \
-Lc:/mingw32/lib \
-Lc:/MinGW32/lib/gcc/mingw32/4.7.1 \
c:/mingw32/lib/dllcrt2.o \
c:/MinGW32/lib/gcc/mingw32/4.7.1/crtbegin.o \
wxmsw28u_gcc_cb.o \
-lwxtiff \
-lwxjpeg \
-lwxpng \
-lwxzlib \
-lwxregexu \
-lwxexpat \
-l:libstdc++.a \
-lmingwthrd \
-lgcc \
-lmingw32 \
-lmoldname \
-lmingwex \
-lmsvcrt \
-lkernel32 \
-luser32 \
-lgdi32 \
-lcomdlg32 \
-lwinspool \
-lwinmm \
-lshell32 \
-lcomctl32 \
-lole32 \
-loleaut32 \
-luuid \
-lrpcrt4 \
-ladvapi32 \
-lwsock32 \
-lodbc32 \
c:/MinGW32/lib/gcc/mingw32/4.7.1/crtend.o

Offline dominover

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: CB Compile time
« Reply #5 on: February 13, 2013, 10:49:55 am »
I just installed the same version of CB with MinGW 4.71 as well and wxWidgets takes forever initially.
Will be interested to hear what the final solution is on that.


Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CB Compile time
« Reply #6 on: February 13, 2013, 12:01:30 pm »
Have you fallen into trouble linking wxWidgets due to exhausted memory ? This happens to me with TDM-GCC 4.7.1 but not with GCC 3.4.5. I know this to forum about wxWidgets but it is used for the CB so I ask.
Under a 32bit system, with LTO enabled, yes, that will happen (LTO eats up about 2.7 GiB of working set for that task). It just barely works if you patch the ld executable to have the LARGEADDRESSAWARE flag set and reboot with /3G. Or well, if you use 64 bits of course, you don't have any trouble.

Without enabling LTO, you shouldn't have any such issues, ever -- unless you run on an embarrassingly low spec machine with too little physical RAM. I've been building wxWidgets on machines with 1GiB of main memory no problem.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline comsytec

  • Multiple posting newcomer
  • *
  • Posts: 58
    • www.comsytec.com
Re: CB Compile time
« Reply #7 on: February 13, 2013, 12:04:06 pm »
We used
Code: [Select]
mingw32-make.exe -f makefile.gcc VENDOR=cb BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
to build wxWidgets which took I dont know exactly 30-40 mins on dual core XP machine 2.4GHz machine without antivirus scanner but always failes on the link step. To solve link troubles we have used the bash script above. Of course you need customize it with your own Mingw paths.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7253
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: CB Compile time
« Reply #8 on: February 13, 2013, 12:54:44 pm »
Search the forum, I think this is discussed in other topics (probably the TDM topics).
I think you need monolithic or non-monolitic builds (depends on what you're currently using, you need the opposite config)
Have you fallen into trouble linking wxWidgets due to exhausted memory ? This happens to me with TDM-GCC 4.7.1 but not with GCC 3.4.5. I know this to forum about wxWidgets but it is used for the CB so I ask.
Adding CXXFLAGS="-fno-keep-inline-dllexport" to the make commandline should fix the exhausted memory issue.