Discussion:
Help for the starting of GCC compiler code!
Nhựt Tân Nguyễn
2014-08-04 06:24:46 UTC
Permalink
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!

Thank you very much!
Andrew Haley
2014-08-04 06:43:42 UTC
Permalink
Post by Nhựt Tân Nguyễn
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.

Loading...