Article View: alt.folklore.computers
Article #620738Re: xref Nostalgia
From: Gene Wirchenko
Date: Thu, 01 Mar 2018 18:13
Date: Thu, 01 Mar 2018 18:13
23 lines
2531 bytes
2531 bytes
On Thu, 1 Mar 2018 06:24:33 -0700, Peter Flass <peter...@yahoo.com>
wrote:
[snip]
>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.
Which is why I think it should be in the compiler. The UNIX
philosophy of simple tools is not so workable here. I say keep the
source in one spot.
I can see problems with a separate xref program understanding the
language slightly differently from the compiler.
Sincerely,
Gene Wirchenko
Technical Details
Message-ID:
<0jgg9ddi83ootvdutb1vg41isra394q1kf@4ax.com>Path:
mbox-mo1.pugleaf.net!130ni31172wmv.0!nntp.google.com!goblin3!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!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.28.103.133 with SMTP id b127mr364360wmc.30.1519927986321; Thu, 01 Mar 2018 10:13:06 -0800 (PST) X-BeenThere: alt.folklore.computers@googlegroups.com Received: by 10.223.142.56 with SMTP id n53ls2178701wrb.12.gmail; Thu, 01 Mar 2018 10:13:05 -0800 (PST) X-Received: by 10.223.182.6 with SMTP id f6mr313155wre.32.1519927985396; Thu, 01 Mar 2018 10:13:05 -0800 (PST) Path: mbox-mo1.pugleaf.net!130ni31172wmv.0!nntp.google.com!goblin3!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko <ge...@telus.net> Newsgroups: alt.folklore.computers Subject: Re: xref Nostalgia Date: Thu, 01 Mar 2018 10:13:07 -0800 Organization: A noiseless patient Spider Lines: 23 Message-ID: <0jgg9ddi83ootvdutb1vg41isra394q1kf@4ax.com> 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 Injection-Info: reader02.eternal-september.org; posting-host="97fefe5b912b639a3bae8a2f7177de6a"; logging-data="10258"; mail-complaints-to="ab...@eternal-september.org"; posting-account="U2FsdGVkX19Abm76QNDzrKLgMytIBmSZTHKcz6YpksE=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:I7mIauxYi0BgUBdzSawZb50L0OY= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit