Rohan, Welcome to GCC and I hope you achieve what you want. I would recommend you check our wiki:
http://gcc.gnu.org/wiki which has some very useful links: http://gcc.gnu.org/wiki/GettingStarted It is a wiki, so feel free to correct mistakes, improve stuff and add links. If you want to create a page for your project, please do so. Seema, I see a link to the workshop but not a link to the GCC resource center you linked. Would you like adding one under "Tutorials, HOWTOs". Cheers, Manuel. 2008/8/21 Seema Ravandale <[EMAIL PROTECTED]>: > Hi Rohan, > > I have already worked on cfg data structure, plugin "data flow pass" on cfg. > For this purpose, following links would be useful. > > http://www.cse.iitb.ac.in/~uday/gcc-workshop/?file=downloads > > more info can be available at > > http://www.cse.iitb.ac.in/grc/ > > - Seema > > On Thu, Aug 21, 2008 at 6:51 AM, Pranav Bhandarkar > <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I may not have correctly understood your questions but from what I >> understand I think you mean to ask how you could easily plug in your >> optimization pass into GCC so as to test your implementation of some >> optimization. >> >> Well, the way to do that would be to understand the pass structure and >> decide where in the order of passes should your pass be inserted i.e >> after which and before which other pass should your optimization pass >> fit in. Look at passes.c to see how the order of passes is specified. >> >> Once you have told the compiler when to execute your pass (primarily >> through passes.c) and provided your optimization has been correctly >> implemented in the context of GCC you should be good to go. >> >> HTH, >> Pranav >> >> On Wed, Aug 20, 2008 at 7:45 PM, Rohan Sreeram <[EMAIL PROTECTED]> wrote: >> > Hi, >> > >> > I am a student in Utah State University researching on compilers >> > optimization techniques. >> > I wanted to know how I could use gcc for experimenting with optimization. >> > >> > Here is what I intend to do: >> > >> > 1) Understand the control flow graphs being generated by GCC, which I >> > could build using the -fdump-tree-cfg option. >> > 2) Write code that could convert CFG to a different graph. >> > 3) Use this new graph for optimization. >> > 4) Use the optimized graph to generate machine code (say Intel >> > architecture for now). >> > >> > Please let me know how I could leverage the GCC code for this purpose, and >> > if you any suggestions/comments for me you are most welcome ! :) >> > >> > Thanks, >> > Rohan >> > >> > >> > >> > >> > >