Why is the exe so big?

Discuss the future of Warzone 2100 with us.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Why is the exe so big?

Post by Lord Apocalypse »

Just noticed this after compiling the release binary. I don't get why its 68mb compared to what I compiled at 3mb. Are the releases built in debug mode?
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Why is the exe so big?

Post by cybersphinx »

The releases are statically linked.
We want information... information... information.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Why is the exe so big?

Post by Lord Apocalypse »

even so it shouldn't be THAT large
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Why is the exe so big?

Post by vexed »

They also contain debug info so the crash handler can give meaningful output.
/facepalm ...Grinch stole WarzoneπŸ™ˆπŸ™‰πŸ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Why is the exe so big?

Post by Lord Apocalypse »

Please tell me that will eventually get stripped out :augh:
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Why is the exe so big?

Post by Lord Apocalypse »

On another note, what preprocessor directive does that require and what extra libs if any?
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Why is the exe so big?

Post by vexed »

You can have release builds + debug info, I don't recall the switch to do that though.
No extra libs needed.

And no, it won't get stripped out, since we want the crash handler to have good crash dumps, that is easy to parse.
/facepalm ...Grinch stole WarzoneπŸ™ˆπŸ™‰πŸ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Why is the exe so big?

Post by Lord Apocalypse »

The VC10 solution includes _debug so that could be it.. but even compiling a debug build the total exe size was 5mb.. Odd that it can go that high, will change more libs to static and check how the crosscopile is handled to see whats inflating it.