From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,42dee056ce900ae6 X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: C's register keyword Date: 1997/09/08 Message-ID: #1/1 X-Deja-AN: 270722608 Sender: news@inmet.camb.inmet.com (USENET news) References: <5uqhm2$t48$1@goanna.cs.rmit.edu.au> X-Nntp-Posting-Host: houdini.camb.inmet.com Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1997-09-08T00:00:00+00:00 List-Id: Tristan Ludowyk (ludowyk@yallara.cs.rmit.edu.au) wrote: : is there an ada equivelent to 'register' in C/C++? In Ada 95, any local variable not declared "aliased" is a candidate for living in a machine register. The compiler decides based on usage. For global variables, some C compilers support the use of the "register" keyword, but normally there is also some kind of pragma to identify which register should be devoted to the variable. The same kind of pragma could certainly be implemented in Ada (and may already be so in some compilers) for assigning a global variable to a machine register. : Tristan. : -- : _/ Tristan Ludowyk \_\_\_\_ : _/_/ RMIT Comp.Sys.Eng/Comp.Sci - 1st year ____TTTc____/| \_\_\_ : _/_/_/ Email: ludowyk@yallara.cs.rmit.edu.au (_u|||_o_) \| \_\_ : _/_/_/_/ "Donkeys live a long time" ^^^ \_ -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA