[comp.sys.transputer] 3L C compiler bug

despoix@imag.imag.fr (Frederic DESPOIX) (07/28/89)

Hear this one : i found a new way to feed your PC hard disk to the back teeth.

Get 3L C compiler and a B004 T414 transputer card with its PC (or vice versa).
Type this little program:

	typedef union {
		int f_int;
	} u_param_evt;

	typedef struct {
		u_param_evt f_p1, f_p2;
	} s_tab_evt;

	s_tab_evt dummy[5][18][10];

compile typing t4c prg.c, go and drink a coffee.
After a time that seems to me proportionnal to the hard disk free space
(logical, isn't it), there won't be any room left !

More seriously :
	I tried different u_param_evt, size from 1 to 4 bytes (not more)
		without success.
	With f_p1 and f_p2 integers, it compiles ok.
	With two dimention array, it works.
	It seems it is the mixing three dimention array with complex struct
	element that mixed everything up.
	But it is sometimes hard to do without when building the kernel of
	an operating system.

The manual did not say anything about that bug and the Data Representation
section did not help in any way.
Did anyone bumped into the same problem ?


						Frederic DESPOIX.


PS : with the hope this also reaches UK sites !!!

___________________________________________________________________________
 DESPOIX Frederic,				despoix@imag.imag.fr
 Laboratoire de Genie Informatique		despoix@imag
 Domaire Universitaire				uunet.uu.net!imag!despoix
 Bat Maths pures, 031
 B.P. 53x
 38401 SAINT MARTIN D'HERES CEDEX
 France