Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: programming quesion, about executable size.

Author: Antonio Dieguez

Date: 19:48:44 06/25/00

Go up one level in this thread


On June 25, 2000 at 21:58:06, Bruce Moreland wrote:

>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.

in java I would not have to do that :(

>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

oops, yes am a total ignorant!, I thunk one long and three shorts are 14 bytes,
can you tell me hoy many bytes are a long, and a short?



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.