home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!ukma!cs.widener.edu!dsinc!ub!galileo.cc.rochester.edu!rochester!rit!cci632!dwr
- From: dwr@cci632.cci.com (Donald W. Rouse II)
- Newsgroups: comp.lang.c++
- Subject: Re: register variables in inline functions
- Message-ID: <1992Dec14.174511.19388@cci632.cci.com>
- Date: 14 Dec 92 17:45:11 GMT
- References: <1992Dec9.011428.11178@aplcen.apl.jhu.edu> <1992Dec10.003109.25441@bilver.uucp>
- Organization: [Computer Consoles, Inc., Rochester, NY
- Lines: 19
-
- In article <1992Dec10.003109.25441@bilver.uucp> dandrews@bilver.uucp (Dave Andrews) writes:
- >In article <1992Dec9.011428.11178@aplcen.apl.jhu.edu> ded@aplcen (nod sivad) writes:
- >>In the past, to speed up a C function's performance, one would
- >>declare frequently used variables as "register."
- >>But what happens with a C++ inline function? Does declaring
- >>the variables as "register" offer any hope of greater speed?
- >>
- >>Supposedly, compilers are so sophisticated nowadays that
- >>the "register" keyword is unnecessary.
- >>
- >My understanding is that both "register" and "inline" may be ignored
- >by your compiler. They are only hints.
- >
- >- David Andrews
- > dandrews@bilver.oau.org
- >
-
- MY understanding is that "inline" may be replaced with "static",
- but it may not be ignored.
-