🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.transputer
Article #171

3L C compiler bug

#171
From: Frederic DESPOIX
Date: Fri, 28 Jul 1989 14:02
47 lines
1883 bytes
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
Technical Details
Message-ID: <6143@imag.imag.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!wugate!uunet!mcvax!inria!imag!despoix

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!wugate!uunet!mcvax!inria!imag!despoix
From: despoix@imag.imag.fr (Frederic DESPOIX)
Newsgroups: comp.sys.transputer
Subject: 3L C compiler bug
Keywords: 3L C compiler
Message-ID: <6143@imag.imag.fr>
Date: 28 Jul 89 14:02:32 GMT
Reply-To: despoix@imag.imag.fr (Frederic DESPOIX)
Organization: IMAG-LGI, University of Grenoble, France
Lines: 47