public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* "cscope" type functionality
@ 2006-02-09 15:28 Perry Smith
  2006-02-12 23:09 ` Tom Tromey
  0 siblings, 1 reply; 7+ messages in thread
From: Perry Smith @ 2006-02-09 15:28 UTC (permalink / raw)
  To: gcc

gcc/g++ has the -M options to help in creating Makefiles.  It struck  
me this morning that a similar switch to help in the creation of a  
database to use to create a "cscope" type facility would be very  
nice.  It would be nice if both cpp and gcc/g++ had this ability.

Has/Does anything like this already exist?  -- perhaps hidden in one  
if the debugging files that can be produced?

Thank you,
Perry Smith

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

* Re: "cscope" type functionality
  2006-02-09 15:28 "cscope" type functionality Perry Smith
@ 2006-02-12 23:09 ` Tom Tromey
  2006-02-12 23:28   ` Gabriel Dos Reis
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Tromey @ 2006-02-12 23:09 UTC (permalink / raw)
  To: Perry Smith; +Cc: GCC Mailing List

>>>>> "Perry" == Perry Smith <pedz@easesoftware.net> writes:

Perry> gcc/g++ has the -M options to help in creating Makefiles.  It struck
Perry> me this morning that a similar switch to help in the creation of a
Perry> database to use to create a "cscope" type facility would be very
Perry> nice.  It would be nice if both cpp and gcc/g++ had this ability.

Perry> Has/Does anything like this already exist?  -- perhaps hidden in one
Perry> if the debugging files that can be produced?

Historically this idea has met with some resistance.  However this
seems to have cleared up a bit, so perhaps it is politically possible
now.

The various debugging dump files aren't the most useful -- sometimes
they omit info, I think we don't try to keep the output formats
stable, etc.

I think it would be more advisable to design something with AST
database generation as an explicit goal.

Tom

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

* Re: "cscope" type functionality
  2006-02-12 23:09 ` Tom Tromey
@ 2006-02-12 23:28   ` Gabriel Dos Reis
  2006-02-13 20:47     ` Mark Mitchell
  0 siblings, 1 reply; 7+ messages in thread
From: Gabriel Dos Reis @ 2006-02-12 23:28 UTC (permalink / raw)
  To: tromey; +Cc: Perry Smith, GCC Mailing List

Tom Tromey <tromey@redhat.com> writes:

[...]

| I think it would be more advisable to design something with AST
| database generation as an explicit goal.

I believe that is a sensible approach, one that I thought a by-product
of the "Link Time Optimization" proposal.  Such a format will be
tremendously useful.

-- Gaby

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

* Re: "cscope" type functionality
  2006-02-12 23:28   ` Gabriel Dos Reis
@ 2006-02-13 20:47     ` Mark Mitchell
  2006-02-15 15:09       ` Perry Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Mitchell @ 2006-02-13 20:47 UTC (permalink / raw)
  To: Gabriel Dos Reis; +Cc: tromey, Perry Smith, GCC Mailing List

Gabriel Dos Reis wrote:
> Tom Tromey <tromey@redhat.com> writes:
> 
> [...]
> 
> | I think it would be more advisable to design something with AST
> | database generation as an explicit goal.
> 
> I believe that is a sensible approach, one that I thought a by-product
> of the "Link Time Optimization" proposal.  Such a format will be
> tremendously useful.

Yes, that was part of the motivation for the LTO design that Kenny, I,
and others developed: such a database "falls out" of that design, with
relatively minimal additional effort.  However, whether or not that
proposal will be implemented is still an open question, dependent on
demand, technological evaluation relative to other approaches for
link-time optimization (notably, LLVM), and available resources.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

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

* Re: "cscope" type functionality
  2006-02-13 20:47     ` Mark Mitchell
@ 2006-02-15 15:09       ` Perry Smith
  2006-02-16  5:13         ` Ian Lance Taylor
  2006-02-17  8:42         ` Mark Mitchell
  0 siblings, 2 replies; 7+ messages in thread
From: Perry Smith @ 2006-02-15 15:09 UTC (permalink / raw)
  To: Mark Mitchell; +Cc: Gabriel Dos Reis, tromey, GCC Mailing List

How do I keep track of the "LTO" design process?  I may not be able  
to help 'cause I don't know enough about gcc's internals but I'd like  
to if possible.

On Feb 13, 2006, at 2:47 PM, Mark Mitchell wrote:

> Gabriel Dos Reis wrote:
>> Tom Tromey <tromey@redhat.com> writes:
>>
>> [...]
>>
>> | I think it would be more advisable to design something with AST
>> | database generation as an explicit goal.
>>
>> I believe that is a sensible approach, one that I thought a by- 
>> product
>> of the "Link Time Optimization" proposal.  Such a format will be
>> tremendously useful.
>
> Yes, that was part of the motivation for the LTO design that Kenny, I,
> and others developed: such a database "falls out" of that design, with
> relatively minimal additional effort.  However, whether or not that
> proposal will be implemented is still an open question, dependent on
> demand, technological evaluation relative to other approaches for
> link-time optimization (notably, LLVM), and available resources.
>
> -- 
> Mark Mitchell
> CodeSourcery
> mark@codesourcery.com
> (650) 331-3385 x713
>

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

* Re: "cscope" type functionality
  2006-02-15 15:09       ` Perry Smith
@ 2006-02-16  5:13         ` Ian Lance Taylor
  2006-02-17  8:42         ` Mark Mitchell
  1 sibling, 0 replies; 7+ messages in thread
From: Ian Lance Taylor @ 2006-02-16  5:13 UTC (permalink / raw)
  To: Perry Smith; +Cc: GCC Mailing List

Perry Smith <pedz@easesoftware.net> writes:

> How do I keep track of the "LTO" design process?  I may not be able
> to help 'cause I don't know enough about gcc's internals but I'd like
> to if possible.

You read the mailing list gcc@gcc.gnu.org.  So you're already doing
the right thing.

Ian

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

* Re: "cscope" type functionality
  2006-02-15 15:09       ` Perry Smith
  2006-02-16  5:13         ` Ian Lance Taylor
@ 2006-02-17  8:42         ` Mark Mitchell
  1 sibling, 0 replies; 7+ messages in thread
From: Mark Mitchell @ 2006-02-17  8:42 UTC (permalink / raw)
  To: Perry Smith; +Cc: Gabriel Dos Reis, tromey, GCC Mailing List


Perry Smith wrote:
> How do I keep track of the "LTO" design process?  I may not be able  to
> help 'cause I don't know enough about gcc's internals but I'd like  to
> if possible.

I think the best approach is to subscribe to gcc@gcc.gnu.org and
gcc-patches@gcc.gnu.org.  That's where discussion and patches will appear.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

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

end of thread, other threads:[~2006-02-17  8:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 15:28 "cscope" type functionality Perry Smith
2006-02-12 23:09 ` Tom Tromey
2006-02-12 23:28   ` Gabriel Dos Reis
2006-02-13 20:47     ` Mark Mitchell
2006-02-15 15:09       ` Perry Smith
2006-02-16  5:13         ` Ian Lance Taylor
2006-02-17  8:42         ` Mark Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).