Xref: utzoo comp.arch:7425 comp.lang.c:14480 Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!eecae!cps3xx!rang From: rang@cpsin3.cps.msu.edu (Anton Rang) Newsgroups: comp.arch,comp.lang.c Subject: The & (address) operator and register allocation Message-ID: <1224@cps3xx.UUCP> Date: 2 Dec 88 17:43:38 GMT Sender: usenet@cps3xx.UUCP Reply-To: rang@cpswh.cps.msu.edu (Anton Rang) Organization: Michigan State University, Computer Science Dept. Lines: 24 I was thinking about RISC machines, and other machines with a lot of registers, and came up with a question. Since the C language doesn't have call-by-reference, is it possible to allocate variables which are passed by reference into registers? For example, the C code: scanf("%d", &N); would require that the address of N be taken to read it from the standard input. If I then have a loop: for (i=0; i