Language Selection

English French German Italian Portuguese Spanish

Getting Familiar with GCC Parameters

Filed under
HowTos

gcc (GNU C Compiler) is actually a collection of frontend tools that does compilation, assembly, and linking. The goal is to produce a ready-to-run executable in a format acceptable to the OS. For Linux, this is ELF (Executable and Linking Format) on x86 (32-bit and 64-bit). But do you know what some of the gcc parameters can do for you? If you're looking for ways to optimize the resulted binary, prepare for a debugging session, or simply observe the steps gcc takes to turn your source code into an executable, getting familiar with these parameters is a must. So, please read on.

Recall that gcc does multiple steps, not just one. Here is a brief explanation of their meaning:

* Preprocessing: Producing code that no longer contains directives. Things like "#if" cannot be understood directly by the compiler, so this must be translated into real code. Macros are also expanded at this stage, making the resulting code larger than the original. [1]

* Compilation:

Full Story.

More in Tux Machines

Intel Sandy Bridge Gets A Surprise Boost From Linux 3.17

Besides the recent work to support OpenGL Geometry Shaders for Sandy Bridge in Mesa, users of Intel "Sandy Bridge" HD Graphics can also be thankful for the forthcoming Linux 3.17 kernel. Early testing of Linux 3.17 has revealed that for at least some Intel Sandy Bridge hardware are OpenGL performance improvements with the newer kernel code. Read more

Open Source Okavango14: The Heartbeat of the Delta

We can hear this heartbeat by listening to what the environment tells us through sensors and testing. I proposed that we build low cost sensors using open source hardware and software. In recent years there has been quite a disruption in computing ability as a result of the prevalence of smartphones. Increasingly small and powerful components and processors have created an opportunities that we would have never thought possible. One of the results of that is the single-board Raspberry Pi computer. Originally, the Raspberry Pi was created to enable students to learn hardware and software development. For the Okavango Wilderness Project, we are using them to take environmental readings and send those to us for inclusion into the Into The Okavango website. Jer will cover this more in his expedition post. We are using them to measure water temperature, pH, conductivity, total dissolved solids, salinity, and specific gravity. Read more

Kochi innovator Arvind Sanjeev makes Google Glass clone for Rs 4,500

Instead of commercializing the product and with the intention of contributing to the community, Sanjeev posted a blog explaining how his 'Smart Cap' can be built by anyone using opensource hardware such as a Rasberry Pi computer, an Arduino board and Android software. Read more

Alfresco Raises A Fresh $45M To Fuel Open-Source Enterprise Content Management

Alfresco, an open source, enterprise content management startup, is today announcing a new round of funding of $45 million — a Series D round that is more than twice as big as all of its previous rounds put together. The UK-based company competes against legacy services like Documentum (which was co-founded by one of Alfresco’s co-founders, John Newton) and Sharepoint to help large organisations manage their disparate document storage both in the cloud and on-premises, and also offer versioning control and other compliance requirements across mobile, PC and other devices. Alfresco will use the new funding to step its business up a gear, with new sales and marketing efforts, and moves into more cloud-based services that could see it competing more directly also against the likes of Dropbox, Box and Huddle. Read more