🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #620734

Re: xref Nostalgia

#620734
From: Dan Espen
Date: Thu, 01 Mar 2018 20:29
52 lines
3944 bytes
Bob Eager <news...@eager.cx> writes:

> 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.

IBM's mainframe C compiler can produce a cross reference.
I had a LOT of experience with the compiler and I can't remember
putting the cross reference to use.

-- 
Dan Espen
Technical Details
Message-ID: <p79nqc$6n6$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!a25ni55itj.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
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> <ffqhheF75bdU18@mid.individual.net>

Show Full Headers
Complete Article Headers
X-Received: by 10.107.168.150 with SMTP id e22mr2047302ioj.88.1519936142805;        Thu, 01 Mar 2018 12:29:02 -0800 (PST)
X-BeenThere: alt.folklore.computers@googlegroups.com
Received: by 10.36.64.85 with SMTP id n82ls1752191ita.7.gmail; Thu, 01 Mar 2018 12:29:01 -0800 (PST)
X-Received: by 10.36.31.144 with SMTP id d138mr2690652itd.36.1519936141776;        Thu, 01 Mar 2018 12:29:01 -0800 (PST)
Path: mbox-mo1.pugleaf.net!a25ni55itj.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Dan Espen <dan1...@gmail.com>
Newsgroups: alt.folklore.computers
Subject: Re: xref Nostalgia
Date: Thu, 01 Mar 2018 15:29:00 -0500
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <p79nqc$6n6$1@dont-email.me>
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> <ffqhheF75bdU18@mid.individual.net>
Mime-Version: 1.0
Injection-Info: reader02.eternal-september.org; posting-host="c876f2f6bd82bc5384c0b4763a192673"; logging-data="6886"; mail-complaints-to="ab...@eternal-september.org"; posting-account="U2FsdGVkX1/YqNksx7sdyYYMciNlZoaSDvk5v336/Ek="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
Cancel-Lock: sha1:6T9HPNHtRxqx082ZlGgm7dTUWgI=
Bytes: 3519
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit