Page 1 of 1

What should be maximum size .EXE ideally ?

PostPosted: Tue May 21, 2019 9:23 am
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

Re: What should be maximum size .EXE ideally ?

PostPosted: Tue May 21, 2019 11:33 am
by hmpaquito
My principal exe file is 25 Mb size. All is right.

I think what dlls code could be a hell.

Re: What should be maximum size .EXE ideally ?

PostPosted: Tue May 21, 2019 2:58 pm
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.

Re: What should be maximum size .EXE ideally ?

PostPosted: Wed May 22, 2019 6:49 am
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

Re: What should be maximum size .EXE ideally ?

PostPosted: Wed May 22, 2019 10:59 am
by vilian
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 )

Re: What should be maximum size .EXE ideally ?

PostPosted: Wed May 22, 2019 11:34 am
by shri_fwh
Hi Vilian ,

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

Thanks
Shridhar

Re: What should be maximum size .EXE ideally ?

PostPosted: Wed May 22, 2019 12:46 pm
by vilian
I use as HRB files the modules minus used in my system.

Re: What should be maximum size .EXE ideally ?

PostPosted: Wed May 22, 2019 2:34 pm
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

Re: What should be maximum size .EXE ideally ?

PostPosted: Wed May 22, 2019 2:49 pm
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.

Re: What should be maximum size .EXE ideally ?

PostPosted: Thu May 23, 2019 8:26 am
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