C is a relativity old and simple language compared to most of the other heavily used languages. Over time lots of little tricks have developed to solve certain problems that arise when programming in such a simple language.
Eclipse is a powerful development environment. Unfortunately, setting up Eclipse as an environment to develop gcc is non-trivial. This page details the steps I have used to get gcc running in my own workspace.