FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour EXE size linking FWH 13.01
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
EXE size linking FWH 13.01
Posted: Sun Feb 03, 2013 12:14 AM

EXE size seems to shrink around 900Kb with FWH 13.01. Is this correct?

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: EXE size linking FWH 13.01
Posted: Sun Feb 03, 2013 11:52 AM

I haven't found any difference in EXE sizes.

EMG

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: EXE size linking FWH 13.01
Posted: Sun Feb 03, 2013 11:57 AM
ADutheil wrote:EXE size seems to shrink around 900Kb with FWH 13.01. Is this correct?

Linking with or without xbrowse normally makes a difference of 900kb
Regards



G. N. Rao.

Hyderabad, India
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: EXE size linking FWH 13.01
Posted: Sun Feb 03, 2013 07:10 PM

I checked the 3 projects I´m currently working on and all their EXE shrinked aroud 900Kb. It happens with MSVC10 but not with MINGW.

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: EXE size linking FWH 13.01
Posted: Mon Feb 04, 2013 12:18 AM

André,

If you generate a MAP file of both EXEs, then you can compare them and check where the difference comes from :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: EXE size linking FWH 13.01
Posted: Mon Feb 04, 2013 12:08 PM

FWH1301 generates a 10747 lines file while FWH1212 produces 14197 lines. Is there any tool to compare?

One obvious difference is the linker do not complain anymore about duplicated _HB_FUN_DRIVETYPE with FWH1301 while with FWH1212 it shows:

FIVEHC32.lib(STRTOKEN.obj) : warning LNK4006: _HB_FUN_STRTOKEN already defined in HBMISC.lib(stringsx.obj); second definition ignored
FIVEHC32.lib(C5CNEW.obj) : warning LNK4006: _HB_FUN_DRIVETYPE already defined in HBCT.lib(disk.obj); second definition ignored

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: EXE size linking FWH 13.01
Posted: Mon Feb 04, 2013 12:12 PM

André,

UltraCompare works fine, you may download it from www.ultraedit.com :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: EXE size linking FWH 13.01
Posted: Mon Feb 04, 2013 06:32 PM
See WinMerge (free)

http://www.winmerg.org
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: EXE size linking FWH 13.01
Posted: Mon Feb 04, 2013 06:42 PM

James,

Many thanks, I wasn't aware of it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: EXE size linking FWH 13.01
Posted: Tue Feb 05, 2013 11:32 AM

Thanks James winmerge was easyer to visualize differences for me.

Antonio here are some functions, not all, that are in FWH1212 map and not in FWH1301:
VMMODE
CSTR
ARRAYID
GETLASTERROR
BASETEXT
CREATEFONTAS
WNDBOXCLR
SETMSGBARDEFAULT
GETMSGBARDEFAULT
GETUSEDFONTS

I´am just asking out of curiosity because till now everything is working fine and having a smaller exe is always good.

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10

Continue the discussion