What should be maximum size .EXE ideally ?

What should be maximum size .EXE ideally ?

Postby shri_fwh » Tue May 21, 2019 9: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 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: What should be maximum size .EXE ideally ?

Postby hmpaquito » 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.
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: What should be maximum size .EXE ideally ?

Postby vilian » Tue May 21, 2019 2: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
User avatar
vilian
 
Posts: 920
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: What should be maximum size .EXE ideally ?

Postby shri_fwh » Wed May 22, 2019 6: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 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: What should be maximum size .EXE ideally ?

Postby vilian » Wed May 22, 2019 10:59 am

Shridhar,

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

Code: Select all  Expand view
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
User avatar
vilian
 
Posts: 920
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: What should be maximum size .EXE ideally ?

Postby shri_fwh » 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 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: What should be maximum size .EXE ideally ?

Postby vilian » 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
User avatar
vilian
 
Posts: 920
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: What should be maximum size .EXE ideally ?

Postby shri_fwh » Wed May 22, 2019 2: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 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: What should be maximum size .EXE ideally ?

Postby vilian » Wed May 22, 2019 2: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
User avatar
vilian
 
Posts: 920
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: What should be maximum size .EXE ideally ?

Postby shri_fwh » Thu May 23, 2019 8: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 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 40 guests