Re: Help for the starting of GCC compiler code!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/08/14 07:24, Nhựt Tân Nguyễn wrote:
> Hi Administrator!
> 
> I'm a student and i have a practise about Linux compiler. The title
> is: "How to GCC compiler work?" and give to teacher the structure.
> 
> By Google searching, i had the structure and executable rules in map
> step by step.
> Next, i downloaded the GCC source files in your server. But i couldn't
> find "where will the code be started first?"
> 
> I mean: that is the "Main() function", when GCC is called, the Main()
> function will be finded and executed first.
> 
> Can you tell me about the folder and files what i need?
> I'm waiting for you!

First build GCC.  There are instructions on the GCC web site.  Then you
must use GDB.  Do this in GDB:

break main
run <GCC arguments>

and you'll be able to see what is happening.

Andrew.






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux