Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site talcott.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!kendall From: kendall@talcott.UUCP (Sam Kendall) Newsgroups: net.lang.c Subject: register struct or union (Re: Registers on the VAX 11/780?) Message-ID: <469@talcott.UUCP> Date: Mon, 22-Jul-85 12:20:35 EDT Article-I.D.: talcott.469 Posted: Mon Jul 22 12:20:35 1985 Date-Received: Wed, 24-Jul-85 07:32:01 EDT References: <574@ucsfcgl.UUCP> Organization: Delft Consulting Corp., New York Lines: 16 > Since code written on one machine is > very often taken to others, and the word "register" isn't very hard to > type, you should declare almost everything a register. Even data types > you don may not think fit in registers, like strucutures, enums, > doubles, and unions. > > Ken Arnol Conceptually nice, but register structs and unions will fail with pcc-based compilers due to a compiler bug. The compiler treats `s.member' as `(&s)->member'; i.e., in the compiler, `->' rather than `.' is the primitive. Martin Minow ran into this problem porting his cpp to UNIX. Sam Kendall Delft Consulting Corp. {allegra, cmcl2, ihnp4}!delftcc!sam