Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: programming quesion, about executable size.

Author: Bruce Moreland

Date: 18:58:06 06/25/00

Go up one level in this thread


On June 25, 2000 at 20:43:53, Dann Corbit wrote:

>malloc() it and your exe will be no bigger.
>It will still consume more memory when it runs, of course.

Msvc would figure out that the array is all zeros, and not save it in the EXE.
It would get zapped up at run-time.

That struct is 10 bytes long, which is a bad idea, since half the accesses on
the 32-bit value are going to be misaligned, which will kill you on some
architectures.

bruce




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.