Page 1 of 1

Does size matter !!!

Posted: Fri Aug 12, 2022 4:16 am
by swan
Recently I was asked if I was interested in completing a project that was about two thirds along, done in RealBasic (Xojo). Target was for Windows desktop, not too complex with remote DB. Not knowing too much about RealBasic I looked into it. I found the IDE nice but was surprised by it's resultant distribution overhead. So I did a little test and created the same Windows app on RealBasic, PureBasic and Delphi, then compared the exe. The app was a webgadget, button and stringgadget, type a URL into stringgadget, press button and URL is displayed in webgadget, very simple.
PureBasic: 48128 bytes
Delphi: 2464256 bytes
RealBasic: 4462592 bytes Then add necessary distribution overhead: 284572523 bytes total
Size of files these days isn't such a big deal as it once was nor am I bagging out any one platform but with such a difference in comparison - worth sharing.

Re: Does size matter !!!

Posted: Fri Aug 12, 2022 7:46 am
by Janni
Thanks for sharing. I love to see it!

File size is a sign of strength in favour of PureBasic

Re: Does size matter !!!

Posted: Fri Aug 12, 2022 8:54 am
by Mijikai
Size, inline FASM and no dependencies where the main reasons i choose PureBasic.

Re: Does size matter !!!

Posted: Sun Aug 14, 2022 5:34 am
by idle
Thats quite a size difference. Fred is still debating about updating the c runtime because if he does the size of executables will rise above 19kb.

Re: Does size matter !!!

Posted: Tue Aug 16, 2022 1:51 pm
by Michael Vogel
Has anyone made tests for the code size when using 32 bit / 64 bit standard/C-backend compiler?

I was wondering that the 32 bit C-backend results are larger than expected and within the exe I can see some sections (debug_a, debug_l, etc.) and tables (nt_store, fp_move, fp_load, fp_store, mmx_move, mmx_load, fadd, fmul, div, fabs, fchs,...) which are not present in the 64 bit executables. [Windows, PB6.00 64bit]

Re: Does size matter !!!

Posted: Tue Aug 16, 2022 5:12 pm
by the.weavster
It's been a long time since I used RealBasic [Xojo] but iirc there was a checkbox you could use to specify whether you wanted the platform web renderer or alternatively include webkit with your app. Including webkit increased the size quite a bit.

Imo at this moment PB's WebGadget relying on IE makes it nonviable for this kind of app anyway.