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

Xubuntu 16.04.1 LTS Released, Upgrade Path from Xubuntu 14.04 LTS Now Open

The first point release of the Xubuntu 16.04 LTS computer operating system has been officially published as part of the Ubuntu 16.04.1 LTS (Xenial Xerus) announcement earlier in the week. Read more

Oracle Outs VirtualBox 5.1.2 with Better Support for Red Hat Enterprise Linux 5

Oracle announced the release of the first maintenance update to the VirtualBox 5.1 series of the open-source and cross-platform virtualization software for all supported computer operating systems. Read more

Internet of Things Web Editor Open Source Project Started

The StackSavings Web Editor has recently been launched as an open source project. The aim of the project is to be a Web Editor for the Internet of Things. The IoT web editor is built on Amazon Web Services cloud platform and is working toward the goal of providing an easy to use web editor interface. Read more

GNOME Software 3.22 Will Support Installation of Snaps, Flatpak Repository Files

The GNOME 3.21.4 desktop environment was released last week, which means that many of the default applications and components were updated with bug fixes and various enhancements. Read more