delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/18/03:00:21

From: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= <poenitz AT gmx DOT net>
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: <b56jec$8n5$1@narses.hrz.tu-chemnitz.de>
References: <b54db9$252aq3$1 AT ID-79865 DOT news DOT dfncis DOT de> <Oejda.183$Zf2 DOT 42 AT read3 DOT inet DOT fi> <b568o6$258tun$1 AT ID-79865 DOT news DOT dfncis DOT de>
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 <alexvn AT bigfoot DOT com> 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)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019