Page 1 of 1

[PB6.10B8] Vast Increase in Compiled Size

Posted: Thu Mar 14, 2024 6:15 am
by Teddy Rogers
I have not tried any other betas than 6.10 beta 8 so I can't tell if this problem is specific to beta 8.

I have a program compiled using 6.04 LTS to 153KB in size. In 6.10 beta 8 this now compiles to 359KB.

Using both C and ASM backend compilers produce similar filesize results.

Is this normal?

Ted.


// Moved from "Bugs - Windows" to "General Discussion" (Kiffi)

Re: [PB6.10B8] Vast Increase in Compiled Size

Posted: Thu Mar 14, 2024 6:20 am
by BarryG
Not a bug. This is normal for product updates due to new commands, fixes, the way things are now compiled, etc.

The PureBasic FAQ page (https://www.purebasic.com/faq.php) really needs to be updated though; as most small programs are NOT 10 KB and 20 KB at all anymore. It should just say less than 1 MB instead, which is more accurate.

Re: [PB6.10B8] Vast Increase in Compiled Size

Posted: Thu Mar 14, 2024 7:16 am
by devox
Since 6.10 Purebasic has started static linking the MS runtime, as previously it linked with the MSVCRT.dll that ships with windows.
This blog post has details about this https://www.purebasic.fr/blog/?p=538

Re: [PB6.10B8] Vast Increase in Compiled Size

Posted: Thu Mar 14, 2024 2:07 pm
by Teddy Rogers
devox wrote: Thu Mar 14, 2024 7:16 am Since 6.10 Purebasic has started static linking the MS runtime, as previously it linked with the MSVCRT.dll that ships with windows.
This blog post has details about this https://www.purebasic.fr/blog/?p=538
I read the blog entry back in November, obviously forgot all about 6.10 being affected by it.

Thank you for the reminder!

Ted.