Article View: alt.folklore.computers
Article #620732Re: xref Nostalgia
From: Bob Eager
Date: Thu, 01 Mar 2018 14:37
Date: Thu, 01 Mar 2018 14:37
49 lines
3527 bytes
3527 bytes
On Thu, 01 Mar 2018 06:24:33 -0700, Peter Flass wrote: > Jorgen Grahn <grahn...@snipabacken.se> wrote: >> On Thu, 2018-03-01, John Levine wrote: >>> In article <slrnp9e76p.eu5.grahn+nntp@frailea.sa.invalid>, >>> Jorgen Grahn <grahn...@snipabacken.se> wrote: >>>> That too, but I'm personally more interested in the time frame when >>>> tools I use today were created: the Unix shells, C compilers, >>>> vi/Emacs, troff ... >>> >>> I was writing C programs on Unix by late 1975 and I don't ever >>> remember using a program to do variable crossrers. >> >> (Note that I didn't mention such tools.) >> >>> Whatever it needed to do, grep was good enough, or the tag schemes >>> later written for emacs and vi. >> >> That's what I still do, 40 years later :-) Tags don't work too well >> with C++ (since you can have a dozen different functions called foo) >> but they /kind of/ work, and no better alternative has shown up as far >> as I'm concerned. >> >> I don't think I've seen anyone use cxref, ever. I once saw a guy use >> cscope, but that was just once, and I was too lazy to try it out. >> >>> Before that I did use the PDP-10 MACRO-10 cref program from time to >>> time, even though we had text editors that had some sort of string >>> search. >> >> /Jorgen >> >> > The thing is, the compiler already has all that information, all nicely > organized. It's trivial to generate the output. The only way to get a > proper xref is by using a program that recognizes variable scope and > storage class - although it's *bad* form, I think in C you can have an > extern or static variable foo and also use different local foo's in a > bunch of functions. If you have a program that does enough syntax > analysis to determine this you have the front half of a compiler. A lot of the cross reference programs I've come across use the front half of the compiler. But overall they are smaller, and a different tool. -- Using UNIX since v6 (1975)... Use the BIG mirror service in the UK: http://www.mirrorservice.org
Technical Details
Message-ID:
<ffqhheF75bdU18@mid.individual.net>Path:
mbox-mo1.pugleaf.net!a2ni3313ite.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<fennrjFber7U1@mid.individual.net> <slrnp98rhs.eu5.grahn+nntp@frailea.sa.invalid> <1463069258.541386219.019217.peter_flass-yahoo.com@news.eternal-september.org> <slrnp9e76p.eu5.grahn+nntp@frailea.sa.invalid> <p77oom$r49$1@gal.iecc.com> <slrnp9fnsm.eu5.grahn+nntp@frailea.sa.invalid> <821602353.541603064.293983.peter_flass-yahoo.com@news.eternal-september.org>Show Full Headers
Complete Article Headers
X-Received: by 10.107.157.72 with SMTP id g69mr1411532ioe.40.1519915056574; Thu, 01 Mar 2018 06:37:36 -0800 (PST) X-BeenThere: alt.folklore.computers@googlegroups.com Received: by 10.36.43.134 with SMTP id h128ls1507824ita.5.canary-gmail; Thu, 01 Mar 2018 06:37:35 -0800 (PST) X-Received: by 10.36.182.76 with SMTP id d12mr1845290itj.11.1519915055483; Thu, 01 Mar 2018 06:37:35 -0800 (PST) Path: mbox-mo1.pugleaf.net!a2ni3313ite.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bob Eager <news...@eager.cx> Newsgroups: alt.folklore.computers Subject: Re: xref Nostalgia Date: 1 Mar 2018 14:37:34 GMT Lines: 49 Message-ID: <ffqhheF75bdU18@mid.individual.net> References: <fennrjFber7U1@mid.individual.net> <slrnp98rhs.eu5.grahn+nntp@frailea.sa.invalid> <1463069258.541386219.019217.peter_flass-yahoo.com@news.eternal-september.org> <slrnp9e76p.eu5.grahn+nntp@frailea.sa.invalid> <p77oom$r49$1@gal.iecc.com> <slrnp9fnsm.eu5.grahn+nntp@frailea.sa.invalid> <821602353.541603064.293983.peter_flass-yahoo.com@news.eternal-september.org> Mime-Version: 1.0 X-Trace: individual.net oLaSNFSehMCQdr5aUqdQ5w9rSv3lI59h+hi2ReS0wEigXgODad Cancel-Lock: sha1:5hW36K9FY2PgFbo/IVsK6UOUc2E= User-Agent: Pan/0.141 (Tarzan's Death; 168b179 git.gnome.org/pan2) Bytes: 3134 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit