[Solved]Codesize by pbcompiler.exe

Just starting out? Need help? Post your questions and find answers here.
infratec
Always Here
Always Here
Posts: 6883
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

[Solved]Codesize by pbcompiler.exe

Post by infratec »

Hi,

when I compile my program via the IDE I get a 198.144 byte executable.

When I compile it at the prompt with:

Code: Select all

pbcompiler.exe xyz.pb /EXE xyz.exe /ICON favicon.ico /THREAD /XP
I get a file with 561.664 bytes

:?: :?: :?:

The options in the IDE are the same:
Icon ...
Threadsafe
Modern theme ...

Any hint ?

It looks like statically linked.

Btw. Win 10 x64 and PB 5.61 x86

Bernd
Last edited by infratec on Fri Sep 22, 2017 2:27 pm, edited 1 time in total.
Fred
Administrator
Administrator
Posts: 16687
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Codesize by pbcompiler.exe

Post by Fred »

It should not do any difference.. May be some compilerif you defined in your project and not on commandline ?
infratec
Always Here
Always Here
Posts: 6883
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Codesize by pbcompiler.exe

Post by infratec »

No,

it is only a 52 line code.
No compilerif inside.

I just trying it with a very small programm.
infratec
Always Here
Always Here
Posts: 6883
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Codesize by pbcompiler.exe

Post by infratec »

Found it :oops:

In the IDE I used an other icon "blabla.ico"
At command line I used icon "blublu.ico"

which was much larger (don't know why)

Sorry for the trouble.

Bernd
Post Reply