[M3commit] CVS Update: cm3

Jay Krell jkrell at elego.de
Sat Mar 16 22:51:42 CET 2013


CVSROOT:	/usr/cvs
Changes by:	jkrell at birch.	13/03/16 22:51:42

Modified files:
	cm3/m3-libs/m3core/src/thread/Common/: ThreadEvent.i3 

Log message:
	shrink ThreadEvent.T
	from:
	
	T = RECORD
	kind: Kind;
	id: ThreadF.Id := 0;
	state := ThreadF.State.dead; END;
	
	struct _MM1D26D90B{
	UINT8 kind;
	UINT8 L_0[7];
	INT64 id;
	UINT8 state;
	UINT8 L_1[7];
	};
	
	24 bytes
	
	to:
	
	T = RECORD
	id: ThreadF.Id := 0;
	kind: Kind;
	state := ThreadF.State.dead; END;
	
	struct _M3F7FCE84{
	INT64 id;
	UINT8 kind;
	UINT8 state;
	UINT8 L_0[6];
	};
	
	16 bytes
	
	on 32bit systems it will be reduced from probably 12 bytes to 8
	
	Consider compiler options to help programmers do this.




More information about the M3commit mailing list