size of executables
Christian Kamm
kamm.incasoftware at shift-at-left-and-remove-this.de
Mon Aug 11 03:53:10 PDT 2008
Sivo Schilling Wrote:
> struct MDSA
> {
> float[SD][SD][SD] m2;
> int[SD][SD][SD] wt;
> int[SD][SD][SD] mr;
> int[SD][SD][SD] mg;
> int[SD][SD][SD] mb;
> }
>
> MDSA mdsa;
vs
> float[SD][SD][SD] m2;
> int[SD][SD][SD] wt;
> int[SD][SD][SD] mr;
> int[SD][SD][SD] mg;
> int[SD][SD][SD] mb;
In the first case DMD will generate a default initializer for the struct which is probably what you're looking at in the DATA section. I do not think you can stop DMD from doing that - it's part of the TypeInfo instance it generates for the struct.
Christian Kamm
More information about the Digitalmars-d-learn
mailing list