Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 838 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Published exe files #236059
11/11/08 17:22
11/11/08 17:22
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline OP
User
RedPhoenix  Offline OP
User
R

Joined: Jan 2007
Posts: 651
Germany
Hi conitec,

what influences the size of the .exe file, that is created with publish?

In other words: How can it be, that an .exe file gets 3Mb in size, when the source code has only a total of less than 1mb in size?

EDIT: To make my problem more clear:
I have published .exe files that have 600kb with a source code (.c files) of 5kb and I have published .exe files that have 300kb with a source code (.c files) of 100kb. I don't understand how the size of the .exe is related to the size of the source code.

Last edited by RedPhoenix; 11/11/08 17:33.
Re: Published exe files [Re: RedPhoenix] #236147
11/12/08 07:55
11/12/08 07:55
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Compiled machine code is normally smaller than your source code. But I can imagine that defining huge global initialized arrays inflates the EXE file. Otherwise I had to look into the project to tell you what the reason is.

Re: Published exe files [Re: jcl] #236153
11/12/08 09:47
11/12/08 09:47
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline OP
User
RedPhoenix  Offline OP
User
R

Joined: Jan 2007
Posts: 651
Germany
Quote:
But I can imagine that defining huge global initialized arrays inflates the EXE file.

Oh that would explain EVERYTHING laugh laugh

I really have a lot of very very huge arrays that are initialized globally.
Well but it should be possible for me to avoid that using dynamic locallly created arrays that will only be as tall as I need them.

Thanks a lot so far, I'll try that out.

Last edited by RedPhoenix; 11/12/08 09:48.

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1