What should be maximum size .EXE ideally ?

Post Reply
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

What should be maximum size .EXE ideally ?

Post by shri_fwh »

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

Re: What should be maximum size .EXE ideally ?

Post by hmpaquito »

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

I think what dlls code could be a hell.
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: What should be maximum size .EXE ideally ?

Post by vilian »

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
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: What should be maximum size .EXE ideally ?

Post by shri_fwh »

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

Re: What should be maximum size .EXE ideally ?

Post by vilian »

Shridhar,

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

Code: Select all

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
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: What should be maximum size .EXE ideally ?

Post by shri_fwh »

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

Re: What should be maximum size .EXE ideally ?

Post by vilian »

I use as HRB files the modules minus used in my system.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: What should be maximum size .EXE ideally ?

Post by shri_fwh »

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

Re: What should be maximum size .EXE ideally ?

Post by vilian »

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
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: What should be maximum size .EXE ideally ?

Post by shri_fwh »

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
Post Reply