Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 8/28/84; site lll-crg.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!umcp-cs!gymble!lll-crg!brooks From: brooks@lll-crg.ARPA (Eugene D. Brooks III) Newsgroups: net.lang.c Subject: Re: Re: register variables Message-ID: <673@lll-crg.ARPA> Date: Tue, 2-Jul-85 00:13:02 EDT Article-I.D.: lll-crg.673 Posted: Tue Jul 2 00:13:02 1985 Date-Received: Thu, 4-Jul-85 00:13:03 EDT References: <472@crystal.UUCP> <365@umcp-cs.UUCP> <421@osu-eddie.UUCP> Distribution: net Organization: Lawrence Livermore Labs, CRG group Lines: 17 > Just for the sake of information, VMS ignores register declarations and > automatically decides for itself how frequently you use each variable and > whether or not to make it a "register declaration". I personally don't > think this is the wisest approach but after looking at a number of machine > code listings it actually appears to work well under most conditions. The Tartan C compiler for vaxen seems to do equally well with register allocation for frequently used variables. I don't know if they pay any attention to register declarations. Forced register declarations are useful in their own right. Sometimes its its quite convenient to use register declarations and asm statements here and there to cheat the compiler. It certainly beats writing whole modules in assembler. YEA! I KNOW! All you people out there in netland are saying "GAG ME WITH A SPOON!" For sure, for sure.