Xref: utzoo comp.arch:7432 comp.lang.c:14490
Path: utzoo!utgpu!watmath!clyde!att!ulysses!andante!amdcad!crackle!tim
From: tim@crackle.amd.com (Tim Olson)
Newsgroups: comp.arch,comp.lang.c
Subject: Re: The & (address) operator and register allocation
Message-ID: <23670@amdcad.AMD.COM>
Date: 2 Dec 88 20:10:24 GMT
References: <1224@cps3xx.UUCP>
Sender: news@amdcad.AMD.COM
Reply-To: tim@crackle.amd.com (Tim Olson)
Organization: Advanced Micro Devices, Inc. Sunnyvale CA
Lines: 46
Summary:
Expires:
Sender:
Followup-To:

In article <1224@cps3xx.UUCP> rang@cpswh.cps.msu.edu (Anton Rang) writes:
| 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