Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site ucsfcgl.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!ucsfcgl!arnold
From: arnold@ucsfcgl.UUCP (Ken Arnold%CGL)
Newsgroups: net.lang.c
Subject: Re: Registers on the VAX 11/780?
Message-ID: <574@ucsfcgl.UUCP>
Date: Mon, 15-Jul-85 17:27:07 EDT
Article-I.D.: ucsfcgl.574
Posted: Mon Jul 15 17:27:07 1985
Date-Received: Wed, 17-Jul-85 20:22:25 EDT
References: <2238@uvacs.UUCP>
Reply-To: arnold@ucsfcgl.UUCP (Ken Arnold)
Organization: UCSF Computer Graphics Lab
Lines: 18

In article <2238@uvacs.UUCP> rwl@uvacs.UUCP (Ray Lubinsky) writes:
>--
>OK, I don't mind giving the complier some hints about what variables to turn
>into  registers, but how many register variables can I declare in a function on
>the VAX 11/780?  Usefully, that is.  Is the number different than the number of
>registers available for user programs?

Usefully, you can declare almost all of your variables to be register.
We just went through all this.  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.

However, to answer the question -- 5.  The rest of the registers are
used for temporary values and other special purposes.

		Ken Arnol