Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!udel!rochester!rit!tropix!ur-valhalla!uhura.cc.rochester.edu!sunybcs!boulder!ncar!ames!mailrus!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!ari From: ari@eleazar.dartmouth.edu (Ari Halberstadt) Newsgroups: comp.lang.c Subject: Re: Short code to determine compiler's Message-ID: <14497@dartvax.Dartmouth.EDU> Date: 15 Aug 89 16:41:45 GMT References: <396@uop.uop.EDU> <225800197@uxe.cso.uiuc.edu> <579@targon.UUCP> <171@bms-at.UUCP> Sender: news@dartvax.Dartmouth.EDU Reply-To: ari@eleazar.dartmouth.edu (Ari Halberstadt) Organization: Dartmouth College, Hanover, NH Lines: 19 In article <171@bms-at.UUCP> stuart@bms-at.UUCP (Stuart Gathman) writes: #>In article <579@targon.UUCP>, andre@targon.UUCP (andre) writes: #> #>> register n1, n2, n3, n4, n5, n6, n7, n8; /* etc. */ #>> int *a; #> #>> a = &n8; #>> a = &n7; #> #>> /* repeat n6 - n2 */ #>> a = &n1; #> #>Taking the address of a register variable is not allowed even when it #>is not actually in a register. It should be illegal, but not all compilers enforce the rule! I tried the program on our VAX running 4.3BSD, and it compiled it very happily. -- Ari Halberstadt '91, "Long live short signatures"