mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* yet another c language cross-reference for linux
@ 2005-10-27 12:27 Paul Albrecht
  2005-10-27 15:22 ` Jon Masters
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Albrecht @ 2005-10-27 12:27 UTC (permalink / raw)
  To: linux-kernel

I have written another cross-referencing tool for the c language because I
have been dissatisfied with existing tools such as ctags and lxr.  I'd like
to get some feedback to determine whether other programmers find the program
useful so I'm making the program script and a database for the linux-2.4.31
kernel available for download from my web site www.pjalbrecht.com. If you're
interested, download the program script and linux database from my web site;
try the program; and send me your comments. I'm particularly interested in
comparing my approach with other cross-reference programs like ctags and
lxr. I don't usually read the linux-kernel mailing list so please cc me if
you answer/comment to the list in response to this message.

Paul Albrecht


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yet another c language cross-reference for linux
  2005-10-27 12:27 yet another c language cross-reference for linux Paul Albrecht
@ 2005-10-27 15:22 ` Jon Masters
  2005-10-27 15:26   ` Randy.Dunlap
  2005-10-27 22:12   ` Paul Albrecht
  0 siblings, 2 replies; 6+ messages in thread
From: Jon Masters @ 2005-10-27 15:22 UTC (permalink / raw)
  To: Paul Albrecht; +Cc: linux-kernel

On 10/27/05, Paul Albrecht <palbrecht@qwest.net> wrote:

> I have written another cross-referencing tool for the c language because I
> have been dissatisfied with existing tools such as ctags and lxr.

Ok.

> I'd like to get some feedback to determine whether other programmers
> find the program useful

It seems to be in its very early stages now. I can barely navigate the
2.4.31 source and it doesn't offer anything like the functionality of
lxr. But if you want to, perhaps it's worthwhile developing it further
and releasing it.

Your README file suggests that LXR fails because it requires a
webserver. Personally, I've never seen that to be an issue and find it
very very useful indeed (although it has limitations and doesn't
always index every symbol I would want to lookup), especially with
coywolf keeping an up-to-date lxr for 2.6. Mel Gorman used it for his
ULVMM book and I'm sure others are using LXR extensively - so it might
be worth extending that.

I'd love it if vendors would actually index their kernels with LXR.

Jon.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yet another c language cross-reference for linux
  2005-10-27 15:22 ` Jon Masters
@ 2005-10-27 15:26   ` Randy.Dunlap
  2005-10-27 22:12   ` Paul Albrecht
  1 sibling, 0 replies; 6+ messages in thread
From: Randy.Dunlap @ 2005-10-27 15:26 UTC (permalink / raw)
  To: jonathan; +Cc: Paul Albrecht, linux-kernel

On Thu, 27 Oct 2005, Jon Masters wrote:

> On 10/27/05, Paul Albrecht <palbrecht@qwest.net> wrote:
>
> > I have written another cross-referencing tool for the c language because I
> > have been dissatisfied with existing tools such as ctags and lxr.
>
> Ok.
>
> > I'd like to get some feedback to determine whether other programmers
> > find the program useful
>
> It seems to be in its very early stages now. I can barely navigate the
> 2.4.31 source and it doesn't offer anything like the functionality of
> lxr. But if you want to, perhaps it's worthwhile developing it further
> and releasing it.

Maybe this is a meta-comment, but I would find it useful
if xvr script (source) files contained (used) some indentation.
I don't see any.

> Your README file suggests that LXR fails because it requires a
> webserver. Personally, I've never seen that to be an issue and find it
> very very useful indeed (although it has limitations and doesn't
> always index every symbol I would want to lookup), especially with
> coywolf keeping an up-to-date lxr for 2.6. Mel Gorman used it for his
> ULVMM book and I'm sure others are using LXR extensively - so it might
> be worth extending that.
>
> I'd love it if vendors would actually index their kernels with LXR.

-- 
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yet another c language cross-reference for linux
  2005-10-27 15:22 ` Jon Masters
  2005-10-27 15:26   ` Randy.Dunlap
@ 2005-10-27 22:12   ` Paul Albrecht
  2005-10-28  9:42     ` Jon Masters
  1 sibling, 1 reply; 6+ messages in thread
From: Paul Albrecht @ 2005-10-27 22:12 UTC (permalink / raw)
  To: jonathan; +Cc: linux-kernel

From: "Jon Masters" <jonmasters@gmail.com>
Sent: Thursday, October 27, 2005 10:22 AM

> On 10/27/05, Paul Albrecht <palbrecht@qwest.net> wrote:
>
> > I have written another cross-referencing tool for the c language because I
> > have been dissatisfied with existing tools such as ctags and lxr.
>
> Ok.
>
> > I'd like to get some feedback to determine whether other programmers
> > find the program useful
>
> It seems to be in its very early stages now. I can barely navigate the
> 2.4.31 source and it doesn't offer anything like the functionality of
> lxr. But if you want to, perhaps it's worthwhile developing it further
> and releasing it.
>
> Your README file suggests that LXR fails because it requires a
> webserver. Personally, I've never seen that to be an issue and find it
> very very useful indeed (although it has limitations and doesn't
> always index every symbol I would want to lookup), especially with
> coywolf keeping an up-to-date lxr for 2.6. Mel Gorman used it for his
> ULVMM book and I'm sure others are using LXR extensively - so it might
> be worth extending that.
>
> I'd love it if vendors would actually index their kernels with LXR.
>
> Jon.

I simply disagree that the lxr user interface is useable for code study. The
problem with the lxr interface stems from the author's decision to use basic
html for query responses to the database; this severely constrains the
user interface. A better approach would be to use dynamic html or provide
the database access as a service and write the user interface as a mozilla
client application.

Actually, I'm uninterested in data presentation issues or I'd make the
changes myself. What's really different about my cross-reference application
is that the database is generated using compiler output. As a result,
the cross-reference database is coherent in the sense that its derived from
a particular kernel compilation. The advantage of this approach is that it
reduces the size and ensures the integrity of the cross-reference database.

Paul Albrecht


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yet another c language cross-reference for linux
  2005-10-27 22:12   ` Paul Albrecht
@ 2005-10-28  9:42     ` Jon Masters
  2005-10-28 21:12       ` Paul Albrecht
  0 siblings, 1 reply; 6+ messages in thread
From: Jon Masters @ 2005-10-28  9:42 UTC (permalink / raw)
  To: Paul Albrecht; +Cc: linux-kernel

On 10/27/05, Paul Albrecht <palbrecht@qwest.net> wrote:

> I simply disagree that the lxr user interface is useable for code study.

Although many people use it for that, so it must be useable.

> The problem with the lxr interface stems from the author's decision to use basic
> html for query responses to the database;

You don't cite an example of where this fails. The only practical
limitation I've seen in lxr is that it doesn't index certain symbols
which arrive through complex defines (and this is a place where asking
the compiler for help *is* useful).

> Actually, I'm uninterested in data presentation issues or I'd make the
> changes myself. What's really different about my cross-reference application
> is that the database is generated using compiler output.

That is a good idea.

> the cross-reference database is coherent in the sense that its derived from
> a particular kernel compilation. The advantage of this approach is that it
> reduces the size and ensures the integrity of the cross-reference database.

coherency is the wrong term here. The database in both should be as
they're derived from a static kernel tree (if not, then there are
other problems). But I'll agree that your idea (I haven't yet checked
the implementation - it was very short) in theory is a good one. LXR
still works great though :-)

Jon.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yet another c language cross-reference for linux
  2005-10-28  9:42     ` Jon Masters
@ 2005-10-28 21:12       ` Paul Albrecht
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Albrecht @ 2005-10-28 21:12 UTC (permalink / raw)
  To: jonathan; +Cc: linux-kernel

From: "Jon Masters" <jonmasters@gmail.com>
Sent: Friday, October 28, 2005 4:42 AM

> On 10/27/05, Paul Albrecht <palbrecht@qwest.net> wrote:
>
> > I simply disagree that the lxr user interface is useable for code study.
>
> Although many people use it for that, so it must be useable.

I don't think lxr is a suitable tool for code study, but if it works for you
that's ok with me.

>
> > The problem with the lxr interface stems from the author's decision to use basic
> > html for query responses to the database;
>
> You don't cite an example of where this fails. The only practical
> limitation I've seen in lxr is that it doesn't index certain symbols
> which arrive through complex defines (and this is a place where asking
> the compiler for help *is* useful).
>
> > Actually, I'm uninterested in data presentation issues or I'd make the
> > changes myself. What's really different about my cross-reference application
> > is that the database is generated using compiler output.
>
> That is a good idea.
>
> > the cross-reference database is coherent in the sense that its derived from
> > a particular kernel compilation. The advantage of this approach is that it
> > reduces the size and ensures the integrity of the cross-reference database.
>
> coherency is the wrong term here. The database in both should be as
> they're derived from a static kernel tree (if not, then there are
> other problems). But I'll agree that your idea (I haven't yet checked
> the implementation - it was very short) in theory is a good one. LXR
> still works great though :-)
>

I'm defining coherency in the sense that the database is derived from a
particular kernel configuration; that is, I'm only considering files compiled or
included for a particular kernel compilation. That's a good thing or a bad thing
depending on what you're trying to accomplish. If, for example, you're only
interested in an i386 kernel configuration, then you're probably not interested
in files and includes for ppc, s390, etc.

Paul Albrecht


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-28 21:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-27 12:27 yet another c language cross-reference for linux Paul Albrecht
2005-10-27 15:22 ` Jon Masters
2005-10-27 15:26   ` Randy.Dunlap
2005-10-27 22:12   ` Paul Albrecht
2005-10-28  9:42     ` Jon Masters
2005-10-28 21:12       ` Paul Albrecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome