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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: "Tarjei T. Jensen" Subject: Re: C's register keyword Date: 1997/09/06 Message-ID: <34111A70.2158@online.no>#1/1 X-Deja-AN: 270196819 References: <5uqhm2$t48$1@goanna.cs.rmit.edu.au> Reply-To: tarjei@online.no Organization: Jensen programvareutvikling Newsgroups: comp.lang.ada Date: 1997-09-06T00:00:00+00:00 List-Id: Tristan Ludowyk wrote: > > is there an ada equivelent to 'register' in C/C++? > You have the pragma optimize which is supposed to come in three flavours: pragma optimize(time); pragma optimize(space); pragma optimize(off); The Ada 95 Reference Manual says that the pragma "applies until the end of the immediately enclosing declarative region, or for a pragma at the place of compilation_unit, to the end of the compilation." The register keyword in C is considered obsolete. A compiler is supposed to be better at allocating registers than most humans. If you think the register keyword is sacred in C, read the GCC manual. If my memory serves me right they say that they ignore it or strongly dissaprove of its use. Greetings, -- // Tarjei T. Jensen // tarjei@online.no || voice +47 51 62 85 58 // Support you local rescue centre: GET LOST!