Hi!
I can't understand one thing. I've been writing a small program, and at one point i needed to use a struct more. Merely by adding it, and doing a single instruction using it the size jumped by 1.5kb uncompressed. I disassembled 2 versions, one with this single instruction one without. the asm code differed very slightly. ( ~12 lines in ~2k lines were different )
So, if the code doesn't differ, why am i getting such a huge change?
typedef struct Primitive_
{
unsigned int type;
float pos[ 3 ], col[ 3 ];
float rotx, roty;
union
{
float sphere;
float cube[ 3 ];
};
} Primitive;
Primitive prim[ PRIMITIVENUM ];
(...)
sub( vector1, prim[ id ].pos, vector2 ); //this line adds 1.5kb, sub is also called previously on different vectors
Stripping the contents of Primitive doesn't reduce size.