HON’s Wiki # GNU Compiler Collection (GCC)

Home / Software Engineering

Contents

An optimizing compiler for C, C++ etc.

The notes below mainly apply to C/C++, unless otherwise stated.

Usage

Common Options

Warning Options

Hardening Options

These flags should be used with applications with insafe input. For HPC applications which use trusted input and require maximum performance, most of these flags should be disabled (not specified).

Undefined Behavior Sanitizer (ubsan) Options

ubsan is a run-time checker for different types of undefined behavior.

TODO https://developers.redhat.com/blog/2014/10/16/gcc-undefined-behavior-sanitizer-ubsan

Debug Options

Common Libraries

Miscellaneous Options


hon.one | HON95/wiki | Edit page