150kB for a cli in/out ?

For everything that's not in any way related to PureBasic. General chat etc...
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

150kB for a cli in/out ?

Post by es_91 »

Hi

I just wondered how come that such a little program....

Code: Select all

; compiles with PureBasic 6.2 x64 @ Windows to more than 150 kB
OpenConsole  ()
Print  ("!")
Input  ()
...compiles to close to or more than 20 kB.

Could some explanation be given, i am just curious. What else is the program doing?
:mrgreen:
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 150kB for a cli in/out ?

Post by Fred »

It's just static CRT link vs dynamic CRT link. Nothing 'useless' is added the the exe. If you want back smaller exe, you need to check the 'Dynamic UCRT' option, but then your program will be Win10+ (which shouldn't be an issue as Win10 is almost deprecated). When we will support only Win10+ in PB, we will link always again dynamic UCRT and this option will be history.
Post Reply