Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!iies.ecn.purdue.edu!psmith From: psmith@iies.ecn.purdue.edu (Paul F Smith) Newsgroups: comp.lang.c++ Subject: Re: Optimization of inline functions Message-ID: <1991Apr1.130152.6541@noose.ecn.purdue.edu> Date: 1 Apr 91 13:01:52 GMT Article-I.D.: noose.1991Apr1.130152.6541 References: <1894@hpwala.wal.hp.com> Sender: root@noose.ecn.purdue.edu (ECN System Management) Distribution: usa Organization: ADPC, Purdue University Lines: 25 In article <1894@hpwala.wal.hp.com> boba@hpwarau.UUCP (Bob Alexander) writes: > [example deleted] >getCounter() is an inline function, so I should be able to read counter with >no function call overhead. But Turbo C++ 1.0 seems to always compile it >as a CALL-ed function. In the IDE, somewhere under the options menu, there's an option to compile inline functions out-of-line. I think this makes it easier to debug a program, then turn on inline when you've got it working. Maybe you have this selected. (although it wouldn't suprise me if the TC++ compile can't really do inline functions) > > Bob Alexander boba@hpwala.hp.com > ----------------------------------------------------------------------- > Organizations don't have opinions: individuals do. The opinions expressed > above do not necessarily reflect those of the stockholders, employees, or > directors of Hewlett-Packard. -- ------------------------------------------------------------------ Paul F. Smith - ADPC - Purdue University psmith@ecn.purdue.edu