Short code to determine compiler's

Stuart Gathman stuart at bms-at.UUCP
Wed Jul 19 07:15:23 AEST 1989


In article <579 at targon.UUCP>, andre at 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.  (When not in a register, banning addressof
guarrantees no aliases for that variable.  Anyone for rekindling the "noalias"
debate :-)
-- 
Stuart D. Gathman	<stuart at bms-at.uucp>
			<..!{vrdxhq|daitc}!bms-at!stuart>



More information about the Comp.lang.c mailing list