From: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= Newsgroups: comp.os.msdos.djgpp,gnu.gcc.help,gnu.utils.help Subject: Re: gcc -O3 & gprof Date: 18 Mar 2003 07:55:56 GMT Organization: Chemnitz University of Technology Lines: 23 Message-ID: References: NNTP-Posting-Host: millo.mpi.htwm.de X-Trace: narses.hrz.tu-chemnitz.de 1047974156 8933 141.55.225.177 (18 Mar 2003 07:55:56 GMT) X-Complaints-To: abuse AT tu-chemnitz DOT de NNTP-Posting-Date: 18 Mar 2003 07:55:56 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In gnu.gcc.help Alex Vinokur wrote: >> The optimisation -O3 inlines simple functions (like yours here). There are >> no calls to trace. > [snip] > > How can we see that ? By looking at the produced assembler... > For instance, nm doesn't distinguish -O0, -O1, -O2, -O3. The function definitions have to be there in case you want to access them from another translation unit. Try to make the functions "static". As the the functions are no longer accessible from the outside I'd expect the symbols to be removed completely. But that's just a wild guess. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)