FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour What should be maximum size .EXE ideally ?
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
What should be maximum size .EXE ideally ?
Posted: Tue May 21, 2019 09:23 AM

Dear All ,

As the Application development in progress for each build the .EXE size is increasing now it reaches 12MB almost and in the future expected size of the .EXE size would be 18MB (max).

Is it fine or I should create .DLL ? Please guide on this.

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: What should be maximum size .EXE ideally ?
Posted: Tue May 21, 2019 11:33 AM

My principal exe file is 25 Mb size. All is right.

I think what dlls code could be a hell.

Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: What should be maximum size .EXE ideally ?
Posted: Tue May 21, 2019 02:58 PM
After I started use HRB files, my main EXE stopped in 8mb and we have more than 400 modules in our system. I only keep in the EXE the main modules, the majority is save as a HRB files.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: What should be maximum size .EXE ideally ?
Posted: Wed May 22, 2019 06:49 AM

Hi Vilian ,

I never tried HRB files , could you please provide build script to generate HRB files. Thanks in advance...!

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: What should be maximum size .EXE ideally ?
Posted: Wed May 22, 2019 10:59 AM
Shridhar,

To generate a hrb from a prg file you must use /gh with harbour.

Code (fw): Select all Collapse
harbour.exe my.prg /gh


( rest of the keys - /n /w, ... as usual, if necessary )
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: What should be maximum size .EXE ideally ?
Posted: Wed May 22, 2019 11:34 AM

Hi Vilian ,

Can we bundled *.PRG ( multiple .PRG files) into one .HRB file ?

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: What should be maximum size .EXE ideally ?
Posted: Wed May 22, 2019 12:46 PM

I use as HRB files the modules minus used in my system.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: What should be maximum size .EXE ideally ?
Posted: Wed May 22, 2019 02:34 PM

Hi Vilian ,

Could you please elaborate as I did not understand. Thanks in advance...!

As we know/remember in Clipper we used to create .OVL file (overlay) from multiple .PRG files. I am assuming the same with HRB. Please correct me if am wrong.

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: What should be maximum size .EXE ideally ?
Posted: Wed May 22, 2019 02:49 PM
Shridhar,

I choose the modules are most used or those are more importante in my system and the executable of my system include them. The executable is generated as any other.

The module minus used or minus importante are compiled as HRB (using harbour /gh) and run using the function Hb_HrbLoad/Hb_HrbGetFunSym without any impact in the exe.

In my system, as I say before, I have more than 400 modules, but only 22 make part of the EXE, all of the rest are HRB files.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: What should be maximum size .EXE ideally ?
Posted: Thu May 23, 2019 08:26 AM

Hi Vilian ,

Many thanks for this info.

May I request to post some sample script to generate both .EXE and .HRB. Thanks in advance ...!

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB

Continue the discussion