public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* The tree API
@ 2005-06-16 10:18 ibanez
  2005-06-16 13:50 ` Rafael Espíndola
  2005-06-18  5:12 ` Mike Stump
  0 siblings, 2 replies; 4+ messages in thread
From: ibanez @ 2005-06-16 10:18 UTC (permalink / raw)
  To: gcc





Hello~ every one :)

I'm a new guy in gcc mailing list
I've been studying gcc for 2 months.
I read "GNU compiler collection internals" (for GCC 3.5.0?),
and I also trace the source code for target-mips.
My problem is there are so much symbol/function/API in gcc.
Some are documentated in the book but not all of them.
All I can do is modified it, rebuild and see what's happend.
This approach is not effective.
If there is a way to learn the gcc internal APIs "systematically"?






*******Notification  of Sunplus Email Domain Change *******
Please kindly be informed that Sunplus  email domain will be changed from SUNPLUS.COM.TW to SUNPLUS.COM effective on 2005/7/1.
*********************************************************************

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

* Re: The tree API
  2005-06-16 10:18 The tree API ibanez
@ 2005-06-16 13:50 ` Rafael Espíndola
  2005-06-16 16:06   ` James A. Morrison
  2005-06-18  5:12 ` Mike Stump
  1 sibling, 1 reply; 4+ messages in thread
From: Rafael Espíndola @ 2005-06-16 13:50 UTC (permalink / raw)
  To: ibanez; +Cc: gcc

On 6/16/05, ibanez@sunplus.com.tw <ibanez@sunplus.com.tw> wrote:
> 
> 
> 
> 
> Hello~ every one :)
> 
> I'm a new guy in gcc mailing list
> I've been studying gcc for 2 months.
> I read "GNU compiler collection internals" (for GCC 3.5.0?),
> and I also trace the source code for target-mips.
> My problem is there are so much symbol/function/API in gcc.
> Some are documentated in the book but not all of them.
> All I can do is modified it, rebuild and see what's happend.
> This approach is not effective.
> If there is a way to learn the gcc internal APIs "systematically"?

I think that I can help since I am having the same problem :)

The best references that I can give you is the GCC Frontend HOWTO at
http://www.tldp.org/HOWTO/GCC-Frontend-HOWTO.html. It is based on a
old gcc, but most of the tree structure still applies.

Two colleges and I are working on a minimal "hello world" front end
for gcc. You can find a alpha version at
http://ltc08.ic.unicamp.br/svn/scheme/branches/hello-world

I also recommend that you take a look at treelang. It is quite simpler
than the others frontends in gcc.

I hope this helps,
Rafael Ávila de Espíndola

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

* Re: The tree API
  2005-06-16 13:50 ` Rafael Espíndola
@ 2005-06-16 16:06   ` James A. Morrison
  0 siblings, 0 replies; 4+ messages in thread
From: James A. Morrison @ 2005-06-16 16:06 UTC (permalink / raw)
  To: Rafael Espíndola; +Cc: ibanez, gcc


Rafael Espíndola <rafael.espindola@gmail.com> writes:

> On 6/16/05, ibanez@sunplus.com.tw <ibanez@sunplus.com.tw> wrote:
> > 
> > 
> > 
> > 
> > Hello~ every one :)
> > 
> > I'm a new guy in gcc mailing list
> > I've been studying gcc for 2 months.
> > I read "GNU compiler collection internals" (for GCC 3.5.0?),
> > and I also trace the source code for target-mips.
> > My problem is there are so much symbol/function/API in gcc.
> > Some are documentated in the book but not all of them.
> > All I can do is modified it, rebuild and see what's happend.
> > This approach is not effective.
> > If there is a way to learn the gcc internal APIs "systematically"?
> 
> I think that I can help since I am having the same problem :)
> 
> The best references that I can give you is the GCC Frontend HOWTO at
> http://www.tldp.org/HOWTO/GCC-Frontend-HOWTO.html. It is based on a
> old gcc, but most of the tree structure still applies.

 Don't forget the GENERIC and GIMPLE documentation at
http://gcc.gnu.org/onlinedocs/gccint/Tree-SSA.html#Tree-SSA
 
> Two colleges and I are working on a minimal "hello world" front end
> for gcc. You can find a alpha version at
> http://ltc08.ic.unicamp.br/svn/scheme/branches/hello-world
> 
> I also recommend that you take a look at treelang. It is quite simpler
> than the others frontends in gcc.
> 
> I hope this helps,
> Rafael Ávila de Espíndola
> 


-- 
Thanks,
Jim

http://www.csclub.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim

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

* Re: The tree API
  2005-06-16 10:18 The tree API ibanez
  2005-06-16 13:50 ` Rafael Espíndola
@ 2005-06-18  5:12 ` Mike Stump
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Stump @ 2005-06-18  5:12 UTC (permalink / raw)
  To: ibanez; +Cc: gcc

On Thursday, June 16, 2005, at 03:16  AM, ibanez@sunplus.com.tw wrote:
> I'm a new guy in gcc mailing list I've been studying gcc for 2 months.

Why?

> My problem is there are so much symbol/function/API in gcc.

You have two choices ignore what you aren't interested in learning, or 
learn it all.  Your choice.  I'd recommend the former.

> This approach is not effective.

Ok.  Without knowing what you're doing and why you're doing it and how 
you're doing it, we can't give you any more help at being effective.

> If there is a way to learn the gcc internal APIs "systematically"?

Why?

Sounds like you're going about things the wrong way.


General hint, no one is likely to answer your question and give you the 
help you need, as we don't know what answer would help you.  Compare 
the needs of a person that is new to gcc in implementing a language 
front-end for Cobol versus a person that wants to implement a tree 
optimizer for autovectorization.  The answers for each are going to be 
slightly different.  I can't actually tell which of these you are 
doing, or if it is something else.  If you want help, you have to give 
us all the information about what you want to learn, why you want to 
learn it, and what we are going to get back from you for giving you the 
information.  Are we going a port, a new optimizer, a new language 
front end, or just the satisfaction knowing that you got an A on your 
homework?

In general, we can't teach you the code, the code is there for you to 
read and understand and teach yourself.  We can only help with a few of 
the fringes, like, do I need to recompute the cfg after I do X.  Is 
there a function I can call to do this?  Notice that this style of 
question has a few more details about what one is doing, and what 
specifically one needs help on.

Try writing a question that is 4x the size of this (non-)answer.

http://www.catb.org/~esr/faqs/smart-questions.html is a curious 
reference that comes to mind that we just saw go by...

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

end of thread, other threads:[~2005-06-18  5:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-16 10:18 The tree API ibanez
2005-06-16 13:50 ` Rafael Espíndola
2005-06-16 16:06   ` James A. Morrison
2005-06-18  5:12 ` Mike Stump

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