Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR/AA) Newsgroups: comp.unix.programmer Subject: Re: function tree trace for a.out's ? Message-ID: <1991Apr23.001401.17099@NCoast.ORG> Date: 23 Apr 91 00:14:01 GMT References: <1991Apr19.150727.17125@ghost.unimi.it> <1991Apr20.171557.19792@NCoast.ORG> <7205@segue.segue.com> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR/AA) Followup-To: comp.unix.programmer Organization: North Coast Public Access Un*x (ncoast) Lines: 28 As quoted from <7205@segue.segue.com> by jim@segue.segue.com (Jim Balter): +--------------- | In article <1991Apr20.171557.19792@NCoast.ORG> allbery@ncoast.ORG (Brandon S. Allbery KB8JRR/AA) writes: | >If (and only if) you adhere to a one-function-per-source-file scheme, you can | >do this by treating "U" lines as refs and others as defs. If you have | >multiple functions per file, you lose: you can't localize it by function, | >only by file. | | Nope. Executables don't contain unresolved references ('"U" lines'). +--------------- I took this as a given. +--------------- | And in .o's, the unresolved references are bracketed by the function | definitions and thus the call structure is determinable, and cflow does it. +--------------- ...as long as you don't play games with it. I've seen stuff that played tricks on .s files to move constant static strings into .text, which defeats this.... ++Brandon -- Me: Brandon S. Allbery Ham: KB8JRR/AA on 10m,2m,220,440,1.2 Internet: allbery@NCoast.ORG (restricted HF at present) Delphi: ALLBERY AMPR: kb8jrr.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery KB8JRR @ WA8BXN.OH