CLANG-21(1)

๐Ÿ“ฆ
version 6.2.0 ยท 2 versions
, in ubuntu stonking

๐Ÿ’– CLANG-21(1) ๐Ÿ’–

User Commands

okay so bestie, you know how we need a compiler for oneAPI? This is clang-21, the LLVM compiler. It's giving main character energy for real. Let me walk you through it. ๐Ÿซถ

NAME

clang-21 โ€” clang LLVM compiler for oneAPI

DESCRIPTION

OVERVIEW: clang LLVM compiler

USAGE:

clang-21 [options] file...

โœจ OPTIONS โœจ

Now the options, bestie. There are a LOT. But don't worry, I got you. ๐Ÿ’…

  • -### โ€” Print (but do not run) the commands to run for this compilation. It's like a little sneak peek, but it doesn't actually do anything. Just shows you the vibes. ๐Ÿ‘€
  • --amdgpu-arch-tool=<value> โ€” Tool used for detecting AMD GPU arch in the system.
  • --analyzer-output <value> โ€” Static analyzer report output format (html|plist|plist-multi-file|plist-html|sarif|sarif-html|text).
  • --analyze โ€” Run the static analyzer.
  • -B <prefix> โ€” Search $prefix$file for executables, libraries, and data files. If $prefix is a directory, search $prefix/$file.
  • -b <arg> โ€” Pass -b <arg> to the linker on AIX.
  • -CC โ€” Include comments from within macros in preprocessed output.
  • -cl-denorms-are-zero โ€” OpenCL only. Allow denormals to be flushed to zero.
  • -cl-ext=<value> โ€” OpenCL only. Enable or disable OpenCL extensions/optional features. The argument is a comma-separated sequence of one or more extension names, each prefixed by + or -.
  • -cl-fast-relaxed-math โ€” OpenCL only. Sets -cl-finite-math-only and -cl-unsafe-math-optimizations, and defines __FAST_RELAXED_MATH__.
  • -cl-finite-math-only โ€” OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf.
  • -cl-fp32-correctly-rounded-divide-sqrt โ€” OpenCL only. Specify that single precision floating-point divide and sqrt used in the program source are correctly rounded.
  • -cl-kernel-arg-info โ€” OpenCL only. Generate kernel argument metadata.
  • -cl-mad-enable โ€” OpenCL only. Allow use of less precise MAD computations in the generated binary.
  • -cl-no-signed-zeros โ€” OpenCL only. Allow use of less precise no signed zeros computations in the generated binary.
  • -cl-no-stdinc โ€” OpenCL only. Disables all standard includes containing non-native compiler types and functions.
  • -cl-opt-disable โ€” OpenCL only. This option disables all optimizations. By default optimizations are enabled.
  • -cl-single-precision-constant โ€” OpenCL only. Treat double precision floating-point constant as single precision constant.
  • -cl-std=<value> โ€” OpenCL language standard to compile for.
  • -cl-strict-aliasing โ€” OpenCL only. This option is added for compatibility with OpenCL 1.0.
  • -cl-uniform-work-group-size โ€” OpenCL only. Defines that the global work-size be a multiple of the work-group size specified to clEnqueueNDRangeKernel.
  • -cl-unsafe-math-optimizations โ€” OpenCL only. Allow unsafe floating-point optimizations. Also implies -cl-no-signed-zeros and -cl-mad-enable.
  • --config=<file> โ€” Specify configuration file.
  • --cuda-compile-host-device โ€” Compile CUDA code for both host and device (default). Has no effect on non-CUDA compilations.
  • --cuda-device-only โ€” Compile CUDA code for device only.
  • --cuda-feature=<value> โ€” Manually specify the CUDA feature to use.
  • --cuda-host-only โ€” Compile CUDA code for host only. Has no effect on non-CUDA compilations.
  • --cuda-include-ptx=<value> โ€” Include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once.
  • --cuda-noopt-device-debug โ€” Enable device-side debug info generation. Disables ptxas optimizations.
  • --cuda-path-ignore-env โ€” Ignore environment variables to detect CUDA installation.
  • --cuda-path=<value> โ€” CUDA installation path.
  • -cuid=<value> โ€” An ID for compilation unit, which should be the same for the same compilation unit but different for different compilation units. It is used to externalize device-side static variables for single source offloading languages CUDA and HIP so that they can be accessed by the host code of the same compilation unit.
  • -cxx-isystem <directory> โ€” Add directory to the C++ SYSTEM include search path.
  • -C โ€” Include comments in preprocessed output.
  • -c โ€” Only run preprocess, compile, and assemble steps.
  • -darwin-target-variant-triple <value> โ€” Specify the darwin target variant triple.
  • -darwin-target-variant <value> โ€” Generate code for an additional runtime variant of the deployment target.
  • -dD โ€” Print macro definitions in -E mode in addition to normal output.
  • -dependency-dot <value> โ€” Filename to write DOT-formatted header dependencies to.
  • -dependency-file <value> โ€” Filename (or -) to write dependency output to.
  • -dI โ€” Print include directives in -E mode in addition to normal output.
  • -dM โ€” Print macro definitions in -E mode instead of normal output.
  • -dsym-dir <dir> โ€” Directory to output dSYM's (if any) to.
  • -dumpdir <dumppfx> โ€” Use <dumpfpx> as a prefix to form auxiliary and dump file names.
  • -dumpmachine โ€” Display the compiler's target processor.
  • -dumpversion โ€” Display the version of the compiler.
  • -D <macro>=<value> โ€” Define <macro> to <value> (or 1 if <value> omitted).
  • --embed-dir=<dir> โ€” Add directory to embed search path.
  • -emit-ast โ€” Emit Clang AST files for source inputs.
  • -emit-cir โ€” Build ASTs and then lower to ClangIR.
  • --emit-extension-symbol-graphs โ€” Generate additional symbol graphs for extended modules.
  • -emit-interface-stubs โ€” Generate Interface Stub Files.
  • -emit-llvm โ€” Use the LLVM representation for assembler and object files.
  • -emit-merged-ifs โ€” Generate Interface Stub Files, emit merged text not binary.
  • --emit-static-lib โ€” Enable linker job to emit a static library.
  • -emit-symbol-graph โ€” Generate Extract API information as a side effect of compilation.
  • --end-no-unused-arguments โ€” Start emitting warnings for unused driver arguments.
  • --extract-api-ignores=<value> โ€” Comma separated list of files containing a new line separated list of API symbols to ignore when extracting API information.
  • -extract-api โ€” Extract API information.
  • -E โ€” Only run the preprocessor.
  • -faapcs-bitfield-load โ€” Follows the AAPCS standard that all volatile bit-field write generates at least one load. (ARM only).
  • -faapcs-bitfield-width โ€” Follow the AAPCS standard requirement stating that volatile bit-field width is dictated by the field container type. (ARM only).
  • -faarch64-jump-table-hardening โ€” Use hardened lowering for jump-table dispatch.
  • -faddrsig โ€” Emit an address-significance table.
  • -falign-loops=<N> โ€” N must be a power of two. Align loops to the boundary.
  • -faligned-allocation โ€” Enable C++17 aligned allocation functions.
  • -fallow-editor-placeholders โ€” Treat editor placeholders as valid source code.
  • -faltivec-src-compat=<value> โ€” Source-level compatibility for Altivec vectors (for PowerPC targets). This includes results of vector comparison (scalar for 'xl', vector for 'gcc') as well as behavior when initializing with a scalar (splatting for 'xl', element zero only for 'gcc'). For 'mixed', the compatibility is as 'gcc' for 'vector bool/vector pixel' and as 'xl' for other types. Current default is 'mixed'.
  • -fansi-escape-codes โ€” Use ANSI escape codes for diagnostics.
  • -fapinotes-modules โ€” Enable module-based external API notes support.
  • -fapinotes-swift-version=<version> โ€” Specify the Swift version to use when filtering API notes.
  • -fapinotes โ€” Enable external API notes support.
  • -fapple-kext โ€” Use Apple's kernel extensions ABI.
  • -fapple-link-rtlib โ€” Force linking the clang builtins runtime library.
  • -fapple-pragma-pack โ€” Enable Apple gcc-compatible #pragma pack handling.
  • -fapplication-extension โ€” Restrict code to those available for App Extensions.
  • -fapprox-func โ€” Allow certain math function calls to be replaced with an approximately equivalent calculation.
  • -fassume-nothrow-exception-dtor โ€” Assume that exception objects' destructors are non-throwing.
  • -fasync-exceptions โ€” Enable EH Asynchronous exceptions.
  • -fauto-import โ€” MinGW specific. Enable code generation support for automatic dllimport, and enable support for it in the linker. Enabled by default.
  • -fbasic-block-address-map โ€” Emit the basic block address map section.
  • -fbasic-block-sections=<value> โ€” Place each function's basic blocks in unique sections (ELF Only).
  • -fbinutils-version=<major.minor> โ€” Produced object files can use all ELF features supported by this binutils version and newer. If -fno-integrated-as is specified, the generated assembly will consider GNU as support. 'none' means that all ELF features can be used, regardless of binutils support. Defaults to 2.26.
  • -fblocks โ€” Enable the 'blocks' language feature.
  • -fborland-extensions โ€” Accept non-standard constructs supported by the Borland compiler.
  • -fbuild-session-file=<file> โ€” Use the last modification time of <file> as the build session timestamp.
  • -fbuild-session-timestamp=<time since Epoch in seconds> โ€” Time when the current build session started.
  • -fbuiltin-module-map โ€” Load the clang builtins module map file.
  • -fc++-abi=<value> โ€” C++ ABI to use. This will override the target C++ ABI.
  • -fc++-static-destructors=<value> โ€” Controls which variables C++ static destructors are registered for.
  • -fcall-saved-x10 โ€” Make the x10 register call-saved (AArch64 only).
  • -fcall-saved-x11 โ€” Make the x11 register call-saved (AArch64 only).
  • -fcall-saved-x12 โ€” Make the x12 register call-saved (AArch64 only).
  • -fcall-saved-x13 โ€” Make the x13 register call-saved (AArch64 only).
  • -fcall-saved-x14 โ€” Make the x14 register call-saved (AArch64 only).
  • -fcall-saved-x15 โ€” Make the x15 register call-saved (AArch64 only).
  • -fcall-saved-x18 โ€” Make the x18 register call-saved (AArch64 only).
  • -fcall-saved-x8 โ€” Make the x8 register call-saved (AArch64 only).
  • -fcall-saved-x9 โ€” Make the x9 register call-saved (AArch64 only).
  • -fcaret-diagnostics-max-lines=<value> โ€” Set the maximum number of source lines to show in a caret diagnostic (0 = no limit).
  • -fcf-protection=<value> โ€” Instrument control-flow architecture protection.
  • -fcf-protection โ€” Enable cf-protection in 'full' mode. ๐Ÿ’…
  • -fchar8_t โ€” Enable the C++ builtin type char8_t. โœจ
  • -fcheck-new โ€” Do not assume C++ operator new may not return NULL. ๐Ÿซถ
  • -fclang-abi-compat=<version> โ€” Attempt to match the ABI of Clang <version>. ๐ŸŽ€
  • -fclangir โ€” Use the ClangIR pipeline to compile. ๐Ÿ”ฅ
  • -fcodegen-data-generate=<path> โ€” Emit codegen data into the object file. LLD for MachO (currently) merges them into the specified <path>. ๐Ÿ’พ
  • -fcodegen-data-generate โ€” Emit codegen data into the object file. LLD for MachO (currently) merges them into default.cgdata. ๐Ÿ’พ
  • -fcodegen-data-use=<path> โ€” Use codegen data read from the specified <path>. ๐Ÿ“–
  • -fcodegen-data-use โ€” Use codegen data read from default.cgdata to optimize the binary. ๐Ÿ“–
  • -fcolor-diagnostics โ€” Enable colors in diagnostics. ๐ŸŒˆ
  • -fcomment-block-commands=<arg> โ€” Treat each comma separated argument in <arg> as a documentation comment block command. ๐Ÿ“
  • -fcommon โ€” Place uninitialized global variables in a common block. ๐Ÿงฑ
  • -fcomplete-member-pointers โ€” Require member pointer base types to be complete if they would be significant under the Microsoft ABI. ๐Ÿช„
  • -fconstexpr-backtrace-limit=<value> โ€” Set the maximum number of entries to print in a constexpr evaluation backtrace (0 = no limit). ๐ŸŒ€
  • -fconstexpr-depth=<value> โ€” Set the maximum depth of recursive constexpr function calls. ๐Ÿชœ
  • -fconstexpr-steps=<value> โ€” Set the maximum number of steps in constexpr function evaluation. ๐Ÿ‘ฃ
  • -fconvergent-functions โ€” Assume all functions may be convergent. ๐Ÿซง
  • -fcoro-aligned-allocation โ€” Prefer aligned allocation for C++ Coroutines. ๐ŸŽฏ
  • -fcoroutines โ€” Enable support for the C++ Coroutines. ๐Ÿงต
  • -fcoverage-compilation-dir=<value> โ€” The compilation directory to embed in the coverage mapping. ๐Ÿ—บ๏ธ
  • -fcoverage-mapping โ€” Generate coverage mapping to enable code coverage analysis. ๐Ÿ“Š
  • -fcoverage-mcdc โ€” Enable MC/DC criteria when generating code coverage. ๐Ÿงช
  • -fcoverage-prefix-map=<old>=<new> โ€” Remap file source paths <old> to <new> in coverage mapping. If there are multiple options, prefix replacement is applied in reverse order starting from the last one. ๐Ÿ”
  • -fcrash-diagnostics-dir=<dir> โ€” Put crash-report files in <dir>. ๐Ÿ’ฅ
  • -fcrash-diagnostics=<value> โ€” Set level of crash diagnostic reporting, (option: off, compiler, all). ๐Ÿšจ
  • -fcrash-diagnostics โ€” Enable crash diagnostic reporting (default). ๐Ÿšจ
  • -fcs-profile-generate=<directory> โ€” Generate instrumented code to collect context sensitive execution counts into <directory>/default.profraw (overridden by LLVM_PROFILE_FILE env var). ๐Ÿ“ˆ
  • -fcs-profile-generate โ€” Generate instrumented code to collect context sensitive execution counts into default.profraw (overridden by LLVM_PROFILE_FILE env var). ๐Ÿ“ˆ
  • -fcuda-prec-sqrt โ€” Specify that sqrt is correctly rounded (for CUDA devices). ๐Ÿงฎ
  • -fcuda-short-ptr โ€” Use 32-bit pointers for accessing const/local/shared address spaces. ๐Ÿงท
  • -fcx-fortran-rules โ€” Range reduction is enabled for complex arithmetic operations. ๐Ÿ”„
  • -fcx-limited-range โ€” Basic algebraic expansions of complex arithmetic operations involving are enabled. ๐Ÿงฎ
  • -fcxx-exceptions โ€” Enable C++ exceptions. ๐Ÿšจ
  • -fcxx-modules โ€” Enable modules for C++. ๐Ÿ“ฆ
  • -fdata-sections โ€” Place each data in its own section. ๐Ÿ—‚๏ธ
  • -fdebug-compilation-dir=<value> โ€” The compilation directory</...> to embed in the debug info. ๐Ÿž
  • -fdebug-default-version=<value> โ€” Default DWARF version to use, if a -g option caused DWARF debug info to be produced. ๐Ÿท๏ธ
  • -fdebug-info-for-profiling โ€” Emit extra debug info to make sample profile more accurate. ๐ŸŽฏ
  • -fdebug-macro โ€” Emit macro debug information. ๐Ÿช„
  • -fdebug-prefix-map=<old>=<new> โ€” For paths in debug info, remap directory <old> to <new>. If multiple options match a path, the last option wins. ๐Ÿฅ‡
  • -fdebug-ranges-base-address โ€” Use DWARF base address selection entries in .debug_ranges. ๐Ÿ“
  • -fdebug-types-section โ€” Place debug types in their own section (ELF Only). ๐Ÿงฌ
  • -fdeclspec โ€” Allow __declspec as a keyword. ๐Ÿ”‘
  • -fdefine-target-os-macros โ€” Enable predefined target OS macros. ๐Ÿ–ฅ๏ธ
  • -fdelayed-template-parsing โ€” Parse templated function definitions at the end of the translation unit. โณ
  • -fdelete-null-pointer-checks โ€” Treat usage of null pointers as undefined behavior (default). ๐Ÿ’€
  • -fdiagnostics-absolute-paths โ€” Print absolute paths in diagnostics. ๐Ÿงญ
  • -fdiagnostics-color=<value> โ€” When to use colors in diagnostics. ๐ŸŽจ
  • -fdiagnostics-hotness-threshold=<value> โ€” Prevent optimization remarks</...> from being output if they do not have at least this profile count. Use 'auto' to apply the threshold from profile summary. ๐ŸŒก๏ธ
  • -fdiagnostics-misexpect-tolerance=<value> โ€” Prevent misexpect diagnostics from being output if the profile counts are within N% of the expected. ๐Ÿ“‰
  • -fdiagnostics-parseable-fixits โ€” Print fix-its in machine parseable form. ๐Ÿค–
  • -fdiagnostics-print-source-range-info โ€” Print source range spans in numeric form. ๐Ÿ”ข
  • -fdiagnostics-show-hotness โ€” Enable profile hotness information in diagnostic line. ๐Ÿ”ฅ
  • -fdiagnostics-show-note-include-stack โ€” Display include stacks for diagnostic notes. ๐Ÿฅž
  • -fdiagnostics-show-option โ€” Print option name with mappable diagnostics. ๐Ÿท๏ธ
  • -fdiagnostics-show-template-tree โ€” Print a template comparison tree for differing templates. ๐ŸŒณ
  • -fdigraphs โ€” Enable alternative token representations '<:', ':>', '<%', '%>', '%:', '%:%:' (default). ๐Ÿช„
  • -fdirect-access-external-data โ€” Don't use GOT indirection to reference external data symbols. ๐Ÿšซ
  • -fdisable-block-signature-string โ€” Disable block signature string) ๐Ÿ™ˆ
  • -fdiscard-value-names โ€” Discard value names in LLVM IR. ๐Ÿ—‘๏ธ
  • -fdollars-in-identifiers โ€” Allow '$' in identifiers. ๐Ÿ’ฒ
  • -fdriver-only โ€” Only run the driver. ๐Ÿš—
  • -fdwarf-exceptions โ€” Use DWARF style exceptions. ๐Ÿงš
  • -feliminate-unused-debug-types โ€” Do not emit debug info for defined but unused types. ๐Ÿงน
  • -fembed-bitcode-marker โ€” Embed placeholder LLVM IR data as a marker. ๐Ÿ“Œ
  • -fembed-bitcode=<option> โ€” Embed LLVM bitcode. ๐ŸงŠ
  • -fembed-bitcode โ€” Embed LLVM IR bitcode as data. ๐ŸงŠ
  • -fembed-offload-object=<value> โ€” Embed Offloading device-side binary</...> into host object file as a section. ๐Ÿ“ฆ
  • -femit-all-decls โ€” Emit all declarations, even if unused. ๐Ÿ“ข
  • -femit-compact-unwind-non-canonical โ€” Try emitting Compact-Unwind for non-canonical entries. Maybe overridden by other constraints. ๐Ÿช‚
  • -femit-dwarf-unwind=<value> โ€” When to emit DWARF unwind (EH frame) info. ๐Ÿงต
  • -femulated-tls โ€” Use emutls functions to access thread_local variables. ๐Ÿงต
  • -fenable-matrix โ€” Enable matrix data type and related builtin functions. ๐Ÿ”ข
  • -fexceptions โ€” Enable support for exception handling. ๐Ÿšจ
  • -fexcess-precision=<value> โ€” Allows control over excess precision on targets where native support for the precision types is not available. By default, excess precision is used to calculate intermediate results following the rules specified in ISO C99. ๐Ÿงฎ
  • -fexperimental-late-parse-attributes โ€” Enable experimental late parsing of attributes. ๐Ÿงช
  • -fexperimental-library โ€” Control whether unstable and experimental library features are enabled. This option enables various library features that are either experimental (also known as TSes), or have been but are not stable yet in the selected Standard Library implementation. It is not recommended to use this option in production code, since neither ABI nor API stability are guaranteed. This is intended to provide a preview of features that will ship in the future for experimentation purposes. ๐Ÿ”ฎ
  • -fexperimental-new-constant-interpreter โ€” Enable the experimental new constant interpreter. ๐Ÿงช
  • -fexperimental-openacc-macro-override <value> โ€” Overrides the _OPENACC macro value for experimental testing during OpenACC support development. ๐Ÿงช
  • -fexperimental-relative-c++-abi-vtables โ€” Use the experimental C++ class ABI for classes with virtual tables. ๐Ÿงช
  • -fexperimental-sanitize-metadata-ignorelist=<value> โ€” Disable sanitizer metadata for modules and functions that match the provided special case list. ๐Ÿ›ก๏ธ
  • -fexperimental-sanitize-metadata=<value> โ€” Specify the type of metadata to emit for binary analysis sanitizers. ๐Ÿ›ก๏ธ
  • -fexperimental-strict-floating-point โ€” Enables the use of non-default rounding modes and non-default exception handling on targets that are not currently ready. ๐Ÿงช
  • -fextend-arguments=<value> โ€” Controls how scalar integer arguments are extended in calls to unprototyped and varargs functions. ๐Ÿ“ž
  • -fextend-variable-liveness=<value> โ€” Extend the liveness of user variables through optimizations to prevent stale or optimized-out variable values when debugging. ๐Ÿ›
  • -fextend-variable-liveness โ€” Alias for -fextend-variable-liveness=all. ๐Ÿ”
  • -ffast-math โ€” Allow aggressive, lossy floating-point optimizations. โšก
  • -ffat-lto-objects โ€” Enable fat LTO object support. ๐Ÿงˆ
  • -ffile-compilation-dir=<value> โ€” The compilation directory</...> to embed in the debug info and coverage mapping. ๐Ÿ“
  • -ffile-prefix-map=<value> โ€” Remap file source paths in debug info, coverage mapping, predefined preprocessor macros and __builtin_FILE(). Implies -ffile-reproducible. ๐Ÿ”
  • -ffile-reproducible โ€” Use the target's platform-specific path separator character when expanding the __FILE__ macro. ๐Ÿ–‡๏ธ
  • -ffine-grained-bitfield-accesses โ€” Use separate accesses for consecutive bitfield runs with legal widths and alignments. ๐Ÿงฉ
  • -ffinite-loops โ€” Assume all non-trivial loops are finite. โ™พ๏ธ
  • -ffinite-math-only โ€” Allow floating-point optimizations</...> that assume arguments and results are not NaNs or +-inf. This defines the __FINITE_MATH_ONLY__ preprocessor macro. ๐Ÿงฎ
  • -ffixed-a0 โ€” Reserve the a0 register (M68k only). ๐Ÿ“Œ
  • -ffixed-a1 โ€” Reserve the a1 register (M68k only). ๐Ÿ“Œ
  • -ffixed-a2 โ€” Reserve the a2 register (M68k only). ๐Ÿ“Œ
  • -ffixed-a3 โ€” Reserve the a3 register (M68k only). ๐Ÿ“Œ
  • -ffixed-a4 โ€” Reserve the a4 register (M68k only). ๐Ÿ“Œ
  • -ffixed-a5 โ€” bestie, this locks down the a5 register so the compiler won't touch it (M68k only) ๐Ÿ”’
  • -ffixed-a6 โ€” same vibe, but for a6 (M68k only) โœจ
  • -ffixed-d0 โ€” reserving the d0 register, hands off (M68k only) ๐Ÿ’…
  • -ffixed-d1 โ€” d1 is taken, no touchy (M68k only) ๐Ÿ”’
  • -ffixed-d2 โ€” you guessed it: d2 is reserved (M68k only) โœจ
  • -ffixed-d3 โ€” d3 stays untouched, periodt (M68k only) ๐Ÿ’…
  • -ffixed-d4 โ€” reserving d4 like it's the last slice of cake (M68k only) ๐Ÿ“
  • -ffixed-d5 โ€” d5 is officially off-limits (M68k only) ๐Ÿ”’
  • -ffixed-d6 โ€” d6 reserved, the compiler said "not me" (M68k only) ๐Ÿ™ˆ
  • -ffixed-d7 โ€” reserving d7 and that's on that (M68k only) ๐Ÿ’–
  • -ffixed-g1 โ€” the G1 register is reserved (SPARC only) ๐Ÿ”’
  • -ffixed-g2 โ€” G2 stays in its lane (SPARC only) โœจ
  • -ffixed-g3 โ€” G3 reserved, don't even think about it (SPARC only) ๐Ÿ’…
  • -ffixed-g4 โ€” G4 is booked and busy (SPARC only) ๐Ÿ‘‘
  • -ffixed-g5 โ€” reserving G5, no cap (SPARC only) ๐Ÿ”’
  • -ffixed-g6 โ€” G6 off the table (SPARC only) ๐ŸŒธ
  • -ffixed-g7 โ€” G7 reserved, final answer (SPARC only) โœจ
  • -ffixed-i0 โ€” I0 register reserved (SPARC only) ๐Ÿ”’
  • -ffixed-i1 โ€” I1 stays untouched (SPARC only) ๐Ÿ’œ
  • -ffixed-i2 โ€” I2 is not for the compiler today (SPARC only) ๐Ÿ’…
  • -ffixed-i3 โ€” reserving I3 (SPARC only) ๐ŸŒˆ
  • -ffixed-i4 โ€” I4 reserved, deal with it (SPARC only) ๐Ÿ”’
  • -ffixed-i5 โ€” I5 hands off (SPARC only) โœจ
  • -ffixed-l0 โ€” L0 register reserved (SPARC only) ๐ŸŽ€
  • -ffixed-l1 โ€” L1 stays yours (SPARC only) ๐Ÿ’–
  • -ffixed-l2 โ€” reserving L2 (SPARC only) ๐Ÿ”’
  • -ffixed-l3 โ€” L3 is protected (SPARC only) ๐Ÿฆ‹
  • -ffixed-l4 โ€” L4 reserved, iykyk (SPARC only) โœจ
  • -ffixed-l5 โ€” L5 not up for grabs (SPARC only) ๐Ÿ’…
  • -ffixed-l6 โ€” reserving L6 (SPARC only) ๐ŸŒธ
  • -ffixed-l7 โ€” L7 reserved, iconic (SPARC only) ๐Ÿ‘‘
  • -ffixed-o0 โ€” O0 register reserved (SPARC only) ๐Ÿ”’
  • -ffixed-o1 โ€” O1 stays safe (SPARC only) ๐Ÿ’œ
  • -ffixed-o2 โ€” reserving O2 (SPARC only) โœจ
  • -ffixed-o3 โ€” O3 off-limits (SPARC only) ๐Ÿ’…
  • -ffixed-o4 โ€” O4 reserved (SPARC only) ๐ŸŒˆ
  • -ffixed-o5 โ€” O5 reserved too, obviously (SPARC only) ๐ŸŽ€
  • -ffixed-point โ€” turns on fixed point types โœจ
  • -ffixed-r19 โ€” reserve register r19 (Hexagon only) ๐Ÿ”’
  • -ffixed-r9 โ€” reserve the r9 register (ARM only) ๐Ÿ’…
  • -ffixed-x10 โ€” reserve the x10 register (AArch64/RISC-V only) ๐Ÿ”’
  • -ffixed-x11 โ€” reserve the x11 register (AArch64/RISC-V only) โœจ
  • -ffixed-x12 โ€” reserve the x12 register (AArch64/RISC-V only) ๐Ÿ’œ
  • -ffixed-x13 โ€” reserve the x13 register (AArch64/RISC-V only) ๐ŸŽ€
  • -ffixed-x14 โ€” reserve the x14 register (AArch64/RISC-V only) ๐ŸŒธ
  • -ffixed-x15 โ€” reserve the x15 register (AArch64/RISC-V only) ๐Ÿฆ‹
  • -ffixed-x16 โ€” reserve the x16 register (AArch64/RISC-V only) ๐Ÿ”’
  • -ffixed-x17 โ€” reserve the x17 register (AArch64/RISC-V only) โœจ
  • -ffixed-x18 โ€” reserve the x18 register (AArch64/RISC-V only) ๐Ÿ’…
  • -ffixed-x19 โ€” reserve the x19 register (AArch64/RISC-V only) ๐Ÿ’–
  • -ffixed-x1 โ€” reserve the x1 register (AArch64/RISC-V only) ๐Ÿ”’
  • -ffixed-x20 โ€” reserve the x20 register (AArch64/RISC-V only) ๐ŸŒˆ
  • -ffixed-x21 โ€” reserve the x21 register (AArch64/RISC-V only) ๐ŸŽ€
  • -ffixed-x22 โ€” reserve the x22 register (AArch64/RISC-V only) โœจ
  • -ffixed-x23 โ€” reserve the x23 register (AArch64/RISC-V only) ๐Ÿ’œ
  • -ffixed-x24 โ€” reserve the x24 register (AArch64/RISC-V only) ๐ŸŒธ
  • -ffixed-x25 โ€” reserve the x25 register (AArch64/RISC-V only) ๐Ÿฆ‹
  • -ffixed-x26 โ€” reserve the x26 register (AArch64/RISC-V only) ๐Ÿ”’
  • -ffixed-x27 โ€” reserve the x27 register (AArch64/RISC-V only) โœจ
  • -ffixed-x28 โ€” reserve the x28 register (AArch64/RISC-V only) ๐Ÿ’…
  • -ffixed-x29 โ€” reserve the x29 register (AArch64/RISC-V only) ๐Ÿ’–
  • -ffixed-x2 โ€” reserve the x2 register (AArch64/RISC-V only) ๐Ÿ”’
  • -ffixed-x30 โ€” reserve the x30 register (AArch64/RISC-V only) ๐ŸŒˆ
  • -ffixed-x31 โ€” reserve the x31 register (AArch64/RISC-V only) ๐ŸŽ€
  • -ffixed-x3 โ€” reserve the x3 register (AArch64/RISC-V only) โœจ
  • -ffixed-x4 โ€” reserve the x4 register (AArch64/RISC-V only) ๐Ÿ’œ
  • -ffixed-x5 โ€” reserve the x5 register (AArch64/RISC-V only) ๐ŸŒธ
  • -ffixed-x6 โ€” reserve the x6 register (AArch64/RISC-V only) ๐Ÿฆ‹
  • -ffixed-x7 โ€” reserve the x7 register (AArch64/RISC-V only) ๐Ÿ”’
  • -ffixed-x8 โ€” reserve the x8 register (AArch64/RISC-V only) โœจ
  • -ffixed-x9 โ€” reserve the x9 register (AArch64/RISC-V only) ๐Ÿ’…

  • -fforce-check-cxx20-modules-input-files โ€” makes it check the input source files from C++20 modules explicitly ๐Ÿ‘€
  • -fforce-dwarf-frame โ€” always emit a debug frame section, no skipping ๐ŸŽ€
  • -fforce-emit-vtables โ€” emits more virtual tables so devirtualization gets better ๐Ÿ”ฅ
  • -fforce-enable-int128 โ€” turns on support for the int128_t type ๐Ÿ’ช
  • -ffp-accuracy=<value> โ€” tells it exactly how accurate floating-point operations and library calls need to be ๐ŸŽฏ
  • -ffp-contract=<value> โ€” forms fused FP ops (like FMAs) ๐Ÿงฌ
  • -ffp-eval-method=<value> โ€” picks the evaluation method used for floating-point arithmetic โœจ
  • -ffp-exception-behavior=<value> โ€” sets the exception behavior of floating-point operations ๐Ÿšจ
  • -ffp-model=<value> โ€” controls the semantics of floating-point calculations, aka the whole vibe of your FP math ๐Ÿ’…
  • -ffreestanding โ€” asserts that the compilation takes place in a freestanding environment ๐Ÿง
  • -ffuchsia-api-level=<value> โ€” set the Fuchsia API level ๐Ÿ’œ
  • -ffunction-sections โ€” puts each and every function in its own section, so organized bestie ๐Ÿ—‚๏ธ
  • -fglobal-isel โ€” enables the global instruction selector ๐Ÿ‘‘
  • -fgnu-keywords โ€” allows GNU-extension keywords no matter what the language standard says ๐ŸŒˆ
  • -fgnu-runtime โ€” generates output compatible with the standard GNU Objective-C runtime ๐Ÿ“
  • -fgnu89-inline โ€” uses the gnu89 inline semantics โœจ
  • -fgnuc-version=<value> โ€” sets various macros to claim compatibility with the given GCC version (default is 4.2.1) ๐ŸŽญ
  • -fgpu-allow-device-init โ€” allow device side init function in HIP (experimental) ๐Ÿงช
  • -fgpu-approx-transcendentals โ€” use approximate transcendental functions ๐ŸŒŠ
  • -fgpu-default-stream=<value> โ€” specify the default stream. The default value is 'legacy'. (CUDA/HIP only) ๐Ÿ’ซ
  • -fgpu-defer-diag โ€” defers host/device related diagnostic messages for CUDA/HIP ๐Ÿคซ
  • -fgpu-flush-denormals-to-zero โ€” flushes denormal floating point values to zero in CUDA/HIP device mode ๐Ÿงน
  • -fgpu-rdc โ€” generates relocatable device code, also known as separate compilation mode ๐Ÿ“ฆ
  • -fgpu-sanitize โ€” enables sanitizer for supported offloading devices ๐Ÿงผ
  • -fheinous-gnu-extensions โ€” (Deprecated) controls whether -Winvalid-gnu-asm-cast defaults to an error or a warning โš ๏ธ
  • -fhip-emit-relocatable โ€” compile HIP source to relocatable ๐Ÿ”„
  • -fhip-fp32-correctly-rounded-divide-sqrt โ€” specifies that single precision floating-point divide and sqrt used in the program source are correctly rounded (HIP device compilation only) ๐ŸŽฏ
  • -fhip-kernel-arg-name โ€” specifies that kernel argument names are preserved (HIP only) ๐Ÿท๏ธ
  • -fhip-new-launch-api โ€” uses the new kernel launching API for HIP ๐Ÿš€
  • -fhlsl-strict-availability โ€” enables strict availability diagnostic mode for HLSL built-in functions ๐Ÿ”
  • -fhonor-infinities โ€” says floating-point optimizations are not allowed if they assume arguments and results aren't ยฑinf โ™พ๏ธ
  • -fhonor-nans โ€” same energy but for NANs: no optimizations that assume args and results aren't NANs ๐Ÿ™…
  • -fignore-exceptions โ€” enables support for ignoring exception handling constructs ๐Ÿค
  • -fimplicit-module-maps โ€” implicitly searches the file system for module map files ๐Ÿ”Ž
  • -fincremental-extensions โ€” enables incremental processing extensions, like processing statements on the global scope ๐Ÿงฉ
  • -finit-global-zero โ€” zero initialize globals without default initialization (this is the default) 0๏ธโƒฃ
  • -finline-functions โ€” inlines suitable functions ๐Ÿ’ž
  • -finline-hint-functions โ€” inlines functions which are (explicitly or implicitly) marked inline ๐Ÿซถ
  • -finline-max-stacksize=<value> โ€” suppresses inlining of functions whose stack size exceeds the given value ๐Ÿšง
  • -finput-charset=<value> โ€” specify the default character set for source files ๐Ÿ”ค
  • -finstrument-function-entry-bare โ€” instruments function entry only, after inlining, with no arguments to the instrumentation call ๐ŸŽฏ
  • -finstrument-functions-after-inlining โ€” like -finstrument-functions, but inserts the calls after inlining ๐Ÿช„
  • -finstrument-functions โ€” generates calls to instrument function entry and exit ๐ŸŽฌ
  • -fintegrated-as โ€” enables the integrated assembler ๐Ÿ› ๏ธ
  • -fintegrated-cc1 โ€” runs cc1 in-process ๐ŸŒ€
  • -fintegrated-objemitter โ€” use internal machine object code emitter ๐Ÿญ
  • -fjmc โ€” enables just-my-code debugging ๐Ÿ•ต๏ธ
  • -fjump-tables โ€” uses jump tables for lowering switches ๐Ÿชœ
  • -fkeep-persistent-storage-variables โ€” enables keeping all variables that have a persistent storage duration โ€” including global, static and thread-local variables โ€” so they're guaranteed to be directly addressable ๐Ÿ“Œ
  • -fkeep-static-consts โ€” keeps static const variables even if they're unused ๐Ÿ’พ
  • -fkeep-system-includes โ€” instead of expanding system headers when emitting preprocessor output, preserves the #include directive. Useful when producing preprocessed output for test case reduction. May produce incorrect output if preprocessor symbols that control the included content (e.g. _XOPEN_SOURCE) are defined in the including source file. The portability of the resulting source to other compilation environments is not guaranteed. ๐Ÿ”ฅ
Only valid with -E. ๐Ÿ‘ˆ like, only, bestie
  • -flax-vector-conversions=<value> โ€” enables implicit vector bit-casts ๐Ÿ”€
  • -flink-huge-device-code โ€” generates and uses a custom linker script for huge device code sections ๐Ÿ˜
  • -flto-jobs=<value> โ€” controls the backend parallelism of -flto=thin (the default of 0 means the number of threads will be derived from the number of CPUs detected) โš™๏ธ
  • -flto=auto โ€” enables LTO in 'full' mode ๐Ÿ†
  • -flto=jobserver โ€” enables LTO in 'full' mode ๐Ÿซก
  • -flto=<value> โ€” set LTO mode ๐ŸŽ›๏ธ
  • -flto โ€” enables LTO in 'full' mode ๐Ÿ’–
  • -fmacro-backtrace-limit=<value> โ€” caps how many entries get printed in a macro expansion backtrace, bestie. Set it to 0 and there's no limit at all, go feral ๐Ÿ’…
  • -fmacro-prefix-map=<value> โ€” remaps file source paths inside the predefined preprocessor macros and __builtin_FILE(). Lowkey implies -ffile-reproducible, so it's doing two things at once, icon behavior โœจ
  • -fmath-errno โ€” makes math functions report errors by setting errno. Old school, but she shows up ๐Ÿ™ˆ
  • -fmax-tokens=<value> โ€” the max total number of preprocessed tokens for -Wmax-tokens. Yes, there's a token limit, this is the token limit ๐ŸŽ€
  • -fmax-type-align=<value> โ€” sets the maximum alignment to enforce on pointers that don't have an explicit alignment. Boundaries, but for pointers ๐Ÿ’€
  • -fmemory-profile-use=<pathname> โ€” uses a memory profile for profile-guided memory optimization. Feeding her her own diary so she optimizes better ๐Ÿฆ‹
  • -fmemory-profile=<directory> โ€” turns on heap memory profiling and dumps the results into <directory> ๐Ÿ“‚
  • -fmemory-profile โ€” turns on heap memory profiling, no directory, no thoughts, just vibes ๐ŸŒธ
  • -fmerge-all-constants โ€” allows merging of constants. They become one ๐Ÿ˜ญ
  • -fmessage-length=<value> โ€” formats message diagnostics so they fit within N columns. Terminal-width girlies, this one's for you โœจ
  • -fminimize-whitespace โ€” ignores whitespace from the input file when emitting preprocessor output. The output only contains whitespace when it's necessary, like keeping two minus signs from merging into an increment operator. Super useful with the -P option to normalize whitespace so that two files with only formatting changes come out equal. Only valid with -E on C-like inputs, and incompatible with -traditional-cpp. No cap, read that twice ๐Ÿ’–
  • -fmodule-file=[<name>=]<file> โ€” maps a module name to a precompiled module file, or just loads a module file if you leave the name off. Choose your own adventure ๐Ÿงš
  • -fmodule-header=<kind> โ€” builds a C++20 Header Unit from a header that should live in the user (fmodule-header=user) or system (fmodule-header=system) search path ๐Ÿ”
  • -fmodule-header โ€” builds a C++20 Header Unit from a header. Short and sweet, periodt ๐Ÿ‘‘
  • -fmodule-map-file=<file> โ€” loads this module map file ๐Ÿ—บ๏ธ
  • -fmodule-name=<name> โ€” tells her the name of the module to build, bestie, names matter ๐ŸŽ€
  • -fmodule-output=<value> โ€” saves intermediate module file results when compiling a standard C++ module unit ๐Ÿ’พ
  • -fmodule-output โ€” same thing, no value: saves intermediate module file results when compiling a standard C++ module unit ๐Ÿ’พ
  • -fmodulemap-allow-subdirectory-search โ€” lets her search for module maps in subdirectories of search paths. She's thorough like that ๐Ÿฆ‹
  • -fmodules-cache-path=<directory> โ€” specifies where the module cache lives ๐Ÿ 
  • -fmodules-decluse โ€” requires declaration of the modules used within a module. Papers, please ๐Ÿ“‹
  • -fmodules-disable-diagnostic-validation โ€” disables validation of the diagnostic options when loading the module. Trust fall ๐Ÿ™ˆ
  • -fmodules-embed-all-files<value> โ€” embeds the contents of all files read by this compilation right into the produced module file. Packed lunch, everything inside ๐Ÿ“
  • -fmodules-ignore-macro=<value> โ€” ignores the definition of the given macro when building and loading modules. Not today, macro ๐Ÿ’…
  • -fmodules-prune-after=<seconds> โ€” sets the interval (in seconds) after which a module file is considered unused. Inactivity timeout โณ
  • -fmodules-prune-interval=<seconds> โ€” sets the interval (in seconds) between attempts to prune the module cache. She checks in regularly, unlike some people ๐Ÿ˜ญ
  • -fmodules-reduced-bmi โ€” generates the reduced BMI. Slay, smaller, faster, iconic โœจ
  • -fmodules-search-all โ€” searches even non-imported modules to resolve references. She'll look everywhere, she has no shame and I love her ๐ŸŒˆ
  • -fmodules-strict-decluse โ€” like -fmodules-decluse, except it requires all headers to be in modules. Stricter than your group chat's rules ๐Ÿ”ฅ
  • -fmodules-user-build-path <directory> โ€” specifies the module user build path ๐Ÿ› ๏ธ
  • -fmodules-validate-input-files-content โ€” validates PCM input files based on content if the mtime differs. Not just vibes โ€” actual content check ๐Ÿง
  • -fmodules-validate-once-per-build-session โ€” doesn't verify input files for the modules if the module was already successfully validated or loaded during this build session. One vibe check per session, we don't do repeats ๐ŸŽ€
  • -fmodules-validate-system-headers โ€” validates the system headers that a module depends on when loading the module ๐Ÿ”
  • -fmodules โ€” enables the 'modules' language feature. That's it, that's the tweet ๐Ÿ‘‘
  • -fms-compatibility-version=<value> โ€” a dot-separated value that's the Microsoft compiler version number reported in _MSC_VER. Set it to 0 and she doesn't define it at all (that's the default) ๐Ÿ™ˆ
  • -fms-compatibility โ€” enables full Microsoft Visual C++ compatibility. The whole thing, not a crumb ๐Ÿ’…
  • -fms-define-stdc โ€” defines '__STDC__' to '1' when you're in MSVC Compatibility mode ๐Ÿฉต
  • -fms-extensions โ€” accepts some non-standard constructs that the Microsoft compiler supports. She's flexible, she contains multitudes โœจ
  • -fms-hotpatch โ€” makes sure all functions can be hotpatched at runtime. Livin' on the edge ๐Ÿ”ฅ
  • -fms-runtime-lib=<value> โ€” selects the Windows run-time library ๐ŸชŸ
  • -fms-volatile โ€” volatile loads and stores have acquire and release semantics. Memory model drama, but make it Microsoft ๐Ÿ’€
  • -fmsc-version=<value> โ€” the Microsoft compiler version number reported in _MSC_VER. 0 means don't define it at all (default) ๐ŸŽ€
  • -fnew-alignment=<align> โ€” specifies the largest alignment guaranteed by '::operator new(size_t)' ๐Ÿ“
  • -fnew-infallible โ€” enables treating throwing global C++ operator new as always returning valid memory (it annotates with __attribute__((returns_nonnull)) and throw()). This is detectable in source, so heads up ๐Ÿซถ
  • -fno-aapcs-bitfield-width โ€” does not follow the AAPCS standard requirement that volatile bit-field width is dictated by the field container type. ARM only, bestie ๐Ÿฉน
  • -fno-access-control โ€” disables C++ access control. Private? Don't know her ๐Ÿ™ˆ
  • -fno-addrsig โ€” doesn't emit an address-significance table. No receipts ๐Ÿ“
  • -fno-apinotes-modules โ€” disables module-based external API notes support ๐Ÿ““
  • -fno-apinotes โ€” disables external API notes support ๐Ÿ““
  • -fno-assume-sane-operator-new โ€” doesn't assume that C++'s global operator new can't alias any pointer. Suspicious girl era ๐Ÿง
  • -fno-assume-unique-vtables โ€” disables optimizations based on vtable pointer identity. Twins exist and she respects that ๐Ÿ‘ฏ
  • -fno-assumptions โ€” disables codegen and compile-time checks for C++23's [[assume]] attribute. Never assume, bestie ๐Ÿ’…
  • -fno-auto-import โ€” MinGW specific. Disables support for automatic dllimport in code generation and linking ๐ŸชŸ
  • -fno-autolink โ€” disables generation of linker directives for automatic library linking. She's not gonna auto-add anything for you ๐Ÿšซ
  • -fno-builtin-<value> โ€” disables implicit builtin knowledge of one specific function ๐ŸŽฏ
  • -fno-builtin โ€” disables implicit builtin knowledge of functions. All of them. Every last one ๐Ÿ’€
  • -fno-bundle-offload-arch โ€” tells the offload bundler it should not identify a bundle with a specific arch. For example, the bundle for nvptx64-nvidia-cuda-sm_80 uses the bundle tag nvptx64-nvidia-cuda when used. This lets .o files contain .bc bundles that are unspecific to a particular arch version ๐ŸŒˆ
  • -fno-c++-static-destructors โ€” disables C++ static destructor registration. No cleanup on the way out, we leave a mess ๐Ÿ˜ญ
  • -fno-char8_t โ€” disables the C++ builtin type char8_t ๐Ÿšซ
  • -fno-clangir โ€” uses the AST -> LLVM pipeline to compile. Classic route, still hits ๐ŸŒธ
  • -fno-color-diagnostics โ€” disables colors in diagnostics. Monochrome sadness ๐Ÿ–ค
  • -fno-common โ€” compiles common globals like normal definitions. No special treatment ๐Ÿ‘‘
  • -fno-complete-member-pointers โ€” doesn't require member pointer base types to be complete if they'd be significant under the Microsoft ABI ๐Ÿงฉ
  • -fno-constant-cfstrings โ€” disables creation of CodeFoundation-type constant strings ๐Ÿšซ
  • -fno-coverage-mapping โ€” disables code coverage analysis ๐Ÿ“‰
  • -fno-coverage-mcdc โ€” disables MC/DC coverage criteria ๐Ÿšซ
  • -fno-crash-diagnostics โ€” disables auto-generation of preprocessed source files and a script for reproduction during a clang crash. When she falls, she falls quietly ๐Ÿ’€
  • -fno-cuda-prec-sqrt โ€” doesn't specify that sqrt is correctly rounded (for CUDA devices) ๐ŸŽฒ
  • -fno-cx-fortran-rules โ€” range reduction is disabled for complex arithmetic operations ๐ŸŒ€
  • -fno-cx-limited-range โ€” basic algebraic expansions of complex arithmetic operations involving are disabled. (Yep, "involving are", that's the original's whole sentence, I'm just the messenger ๐Ÿ™ˆ) ๐ŸŒ€
  • -fno-cxx-modules โ€” disables modules for C++ ๐Ÿšซ
  • -fno-debug-macro โ€” doesn't emit macro debug information ๐Ÿ›
  • -fno-declspec โ€” disallows __declspec as a keyword โœ‹
  • -fno-define-target-os-macros โ€” disables predefined target OS macros ๐Ÿšซ
  • -fno-delayed-template-parsing โ€” disables delayed template parsing. Right now, no waiting ๐Ÿ’…
  • -fno-delete-null-pointer-checks โ€” doesn't treat usage of null pointers as undefined behavior. Danger, bestie, that's UB and she's telling you straight ๐Ÿ˜ญ
  • -fno-diagnostics-fixit-info โ€” doesn't include fixit information in diagnostics. No little helpful patch, figure it out ๐Ÿงต
  • -fno-diagnostics-show-line-numbers โ€” shows line numbers in diagnostic code snippets. Yes, this "no" flag shows them โ€” that's literally what it says, I don't make the rules ๐Ÿ™ˆ
  • -fno-digraphs โ€” disallows the alternative token representations '<:', ':>', '<%', '%>', '%:', '%:%:' ๐Ÿšซ
  • -fno-direct-access-external-data โ€” uses GOT indirection to reference external data symbols ๐Ÿ”
  • -fno-disable-block-signature-string โ€” doesn't disable the block signature string (yes, it ends with a stray ), iconic, we keep it verbatim) ๐Ÿงš
  • -fno-discard-value-names โ€” doesn't discard value names in LLVM IR. Names have meaning, we're keeping them ๐Ÿท๏ธ
  • -fno-dollars-in-identifiers โ€” disallows '$' in identifiers. No cash money in my names ๐Ÿ’ธ
  • -fno-elide-constructors โ€” disables C++ copy constructor elision ๐Ÿšซ
  • -fno-elide-type โ€” doesn't elide types when printing diagnostics. Full and complete, no shortening, she's verbose and proud ๐Ÿ—ฃ๏ธ
  • -fno-eliminate-unused-debug-types โ€” emits debug info for defined but unused types. (Two spaces after "Emit" in the original, it's that girl's signature look ๐Ÿ’…) ๐Ÿ›
  • -fno-exceptions โ€” disables support for exception handling ๐Ÿšซ
  • -fno-experimental-late-parse-attributes โ€” disables experimental late parsing of attributes ๐Ÿงช
  • -fno-experimental-relative-c++-abi-vtables โ€” doesn't use the experimental C++ class ABI for classes with virtual tables ๐Ÿงช
  • -fno-experimental-sanitize-metadata=<value> โ€” disables emitting metadata for binary analysis sanitizers ๐Ÿงช
  • -fno-fat-lto-objects โ€” disables fat LTO object support. Slim, not thick ๐Ÿฆ‹
  • -fno-file-reproducible โ€” uses the host's platform-specific path separator character when expanding the __FILE__ macro ๐Ÿ›ค๏ธ
  • -fno-fine-grained-bitfield-accesses โ€” uses large-integer access for consecutive bitfield runs ๐Ÿ”ข
  • -fno-finite-loops โ€” doesn't assume that any loop is finite. Respectfully terrifying, she could loop forever and that's on purpose ๐Ÿ˜ญ
  • -fno-fixed-point โ€” disables fixed point types ๐Ÿšซ
  • -fno-force-enable-int128 โ€” disables support for the int128_t type ๐Ÿšซ
  • -fno-global-isel โ€” disables the global instruction selector ๐Ÿšซ
  • -fno-gnu-inline-asm โ€” disables GNU style inline asm ๐Ÿšซ
  • -fno-gpu-allow-device-init โ€” doesn't allow a device side init function in HIP (experimental) ๐Ÿงช
  • -fno-gpu-approx-transcendentals โ€” doesn't use approximate transcendental functions. Exact only, she's a perfectionist ๐Ÿ’…
  • -fno-gpu-defer-diag โ€” doesn't defer host/device related diagnostic messages for CUDA/HIP ๐Ÿ“ข
  • -fno-hip-emit-relocatable โ€” does not override the toolchain to compile HIP source to relocatable ๐Ÿšซ

  • -fno-hip-fp32-correctly-rounded-divide-sqrt โ€” bestie this one is HIP device compilation only, and it says nope to promising that single precision floating-point divide and sqrt used in the program source are correctly rounded ๐Ÿ’…
  • -fno-hip-kernel-arg-name โ€” don't specify that kernel argument names are preserved (HIP only, so if you're not doing HIP this is just a stranger in your mentions ๐Ÿซฅ)
  • -fno-hip-new-launch-api โ€” don't use the new kernel launching API for HIP, we're keeping it old school โœจ
  • -fno-init-global-zero โ€” do not zero initialize globals that don't have default initialization. Not everything needs a fresh start, iykyk ๐Ÿ“
  • -fno-integrated-as โ€” disables the integrated assembler, so clang stops doing the assembly itself and hands it off ๐Ÿ’€
  • -fno-integrated-cc1 โ€” spawns a separate process for each cc1. More processes, more drama, more isolation ๐ŸŒธ
  • -fno-integrated-objemitter โ€” use an external machine object code emitter instead of the built-in one ๐ŸŽ€
  • -fno-jump-tables โ€” do not use jump tables for lowering switches. Straight if-else energy, no shortcuts ๐ŸŒˆ
  • -fno-keep-persistent-storage-variables โ€” disables keeping all variables that have a persistent storage duration (that's global, static and thread-local variables, the whole friend group) so they can be directly addressed. Turning this off means no more guarantee they're directly addressable ๐Ÿ˜ญ
  • -fno-keep-static-consts โ€” don't keep static const variables even if they're unused. If they're not showing up, they're not staying ๐Ÿงš
  • -fno-knr-functions โ€” disables support for K&R C function declarations. Grandpa syntax, we're respectfully declining ๐Ÿ’œ
  • -fno-link-huge-device-code โ€” do not generate or use a custom linker script for huge device code sections. Fun fact: this is the default โœจ
  • -fno-lto โ€” disables LTO mode. Also the default, lowkey iconic for just vibing ๐Ÿ”ฅ
  • -fno-memory-profile โ€” disables heap memory profiling. We are choosing to not look at the receipts ๐Ÿ™ˆ
  • -fno-merge-all-constants โ€” disallows merging of constants. Everyone keeps their own identity, periodt ๐Ÿ‘‘
  • -fno-modules-check-relocated<value> โ€” skips checks for relocated modules when loading PCM files ๐Ÿฆ‹
  • -fno-modules-validate-textual-header-includes โ€” does not enforce -fmodules-decluse and private header restrictions for textual headers.
Heads up bestie: this flag will be removed in a future Clang release. Don't get attached ๐Ÿ’”
  • -fno-ms-tls-guards โ€” do not emit code to perform on-demand initialization of thread-local variables ๐ŸŽ€
  • -fno-new-infallible โ€” disables treating the throwing global C++ operator new as always returning valid memory (it annotates with __attribute__((returns_nonnull)) and throw()). And yes, this is detectable in source, so it's not a secret ๐Ÿ‘€
  • -fno-objc-avoid-heapify-local-blocks โ€” don't try to avoid heapifying local blocks. Let them live on the heap, they'll be fine ๐Ÿซถ
  • -fno-objc-infer-related-result-type โ€” do not infer Objective-C related result type based on method family ๐ŸŒธ

  • -fno-offload-fp32-prec-div โ€” fdiv operations in offload device code are not required to return correctly rounded results. Sloppy on purpose, and that's the point ๐Ÿ’…
  • -fno-offload-fp32-prec-sqrt โ€” same deal but for sqrt operations in offload device code: not required to return correctly rounded results โญ
  • -fno-offload-lto โ€” disables LTO mode for offload compilation. And yep, that's the default ๐Ÿ’œ
  • -fno-offload-uniform-block โ€” don't assume that kernels are launched with uniform block sizes. Cute detail: the default here is true for CUDA/HIP and false otherwise โ€” so it's a whole different vibe per target ๐ŸŒˆ
  • -fno-offload-via-llvm โ€” don't use LLVM/Offload as the portable offloading runtime ๐Ÿฆ‹
  • -fno-openmp-extensions โ€” disables all Clang extensions for OpenMP directives and clauses. Back to standard, no extras, no sprinkles ๐ŸŽ€
  • -fno-operator-names โ€” do not treat C++ operator name keywords as synonyms for operators. and, or, not โ€” we're not doing the alias thing today ๐Ÿ“
  • -fno-optimize-sibling-calls โ€” disables tail call optimization, which keeps the call stack accurate. Great for debugging, less great for speed, but accuracy ate ๐Ÿ’…
  • -fno-pch-codegen โ€” do not generate code for uses of this PCH that assumes an explicit object file will be built for the PCH ๐Ÿงš
  • -fno-pch-debuginfo โ€” do not generate debug info for types in an object file built from this PCH, and do not generate them anywhere else either. Nowhere. Not even the group chat ๐ŸŒธ
  • -fno-plt โ€” use GOT indirection instead of PLT to make external function calls. x86 only, bestie, don't try this anywhere else ๐Ÿ’€
  • -fno-preserve-as-comments โ€” do not preserve comments in inline assembly. Your little asm love notes get deleted ๐Ÿ˜ญ
  • -fno-profile-generate โ€” disables generation of profile instrumentation. Periodt.
  • -fno-profile-instr-generate โ€” also disables generation of profile instrumentation. Yes it's basically the same sentence twice, no I'm not skipping it, every one of these flags is getting its moment โœจ
  • -fno-profile-instr-use โ€” disables using instrumentation data for profile-guided optimization ๐ŸŽ€
  • -fno-pseudo-probe-for-profiling โ€” do not emit pseudo probes for sample profiling ๐Ÿฆ‹
  • -fno-raw-string-literals โ€” disables raw string literals. No more R"( )", we're back to escaping everything like it's 2009 ๐Ÿ’œ
  • -fno-register-global-dtors-with-atexit โ€” don't use atexit or __cxa_atexit to register global destructors ๐ŸŒธ
  • -fno-rtlib-add-rpath โ€” do not add -rpath with the architecture-specific resource directory to the linker flags. And extra detail for the HIP girlies: when --hip-link is specified, do not add -rpath with the HIP runtime library directory to the linker flags either ๐Ÿ‘‘
  • -fno-rtlib-defaultlib โ€” on Windows, do not emit /defaultlib: directives to link compiler-rt libraries ๐ŸชŸโœจ
  • -fno-rtti-data โ€” disables generation of RTTI data (just the data, bestie, read carefully) ๐Ÿ’…
  • -fno-rtti โ€” disables generation of rtti information. All of it. Gone ๐Ÿซฅ
  • -fno-sanitize-address-globals-dead-stripping โ€” disables linker dead stripping of globals in AddressSanitizer ๐Ÿ’€
  • -fno-sanitize-address-outline-instrumentation โ€” use the default code inlining logic for the address sanitizer ๐ŸŽ€
  • -fno-sanitize-address-poison-custom-array-cookie โ€” disables poisoning array cookies when using custom operator new[] in AddressSanitizer ๐Ÿ“
  • -fno-sanitize-address-use-after-scope โ€” disables use-after-scope detection in AddressSanitizer. So your scope mistakes stay uncaught, live your truth I guess ๐Ÿ™ˆ
  • -fno-sanitize-address-use-odr-indicator โ€” disables ODR indicator globals ๐ŸŒธ
  • -fno-sanitize-cfi-canonical-jump-tables โ€” do not make the jump table addresses canonical in the symbol table ๐Ÿงš
  • -fno-sanitize-cfi-cross-dso โ€” disables control flow integrity (CFI) checks for cross-DSO calls ๐Ÿ’œ
  • -fno-sanitize-coverage=<value> โ€” disables features of coverage instrumentation for Sanitizers. Note the <value>, bestie, it takes an argument ๐ŸŽ€
  • -fno-sanitize-hwaddress-experimental-aliasing โ€” disables aliasing mode in HWAddressSanitizer ๐ŸŒˆ
  • -fno-sanitize-ignorelist โ€” don't use an ignorelist file for sanitizers. Nobody's getting excused today ๐Ÿ”ฅ
  • -fno-sanitize-memory-param-retval โ€” disables detection of uninitialized parameters and return values ๐Ÿ˜ญ
  • -fno-sanitize-memory-track-origins โ€” disables origins tracking in MemorySanitizer. You'll get the sin but not the backstory ๐Ÿ’…
  • -fno-sanitize-memory-use-after-dtor โ€” disables use-after-destroy detection in MemorySanitizer ๐Ÿ’€
  • -fno-sanitize-merge=<value> โ€” do not allow the compiler to merge handlers for the specified sanitizers ๐ŸŽ€
  • -fno-sanitize-merge โ€” do not allow the compiler to merge handlers for any sanitizers. Everyone gets their own handler, no sharing ๐Ÿซถ
  • -fno-sanitize-recover=<value> โ€” disables recovery for the specified sanitizers ๐Ÿฆ‹
  • -fno-sanitize-stable-abi โ€” conventional ABI instrumentation for the sanitizer runtime. The default here is Conventional โœจ
  • -fno-sanitize-stats โ€” disables sanitizer statistics gathering ๐ŸŒธ
  • -fno-sanitize-thread-atomics โ€” disables atomic operations instrumentation in ThreadSanitizer ๐Ÿ“
  • -fno-sanitize-thread-func-entry-exit โ€” disables function entry/exit instrumentation in ThreadSanitizer ๐Ÿงš
  • -fno-sanitize-thread-memory-access โ€” disables memory access instrumentation in ThreadSanitizer ๐Ÿ’œ
  • -fno-sanitize-trap=<value> โ€” disables trapping for the specified sanitizers ๐ŸŽ€
  • -fno-sanitize-trap โ€” disables trapping for all the sanitizers ๐ŸŒˆ
  • -fno-short-wchar โ€” force wchar_t to be an unsigned int ๐Ÿ‘‘
  • -fno-show-column โ€” do not include the column number on diagnostics. We're keeping it vague โœจ
  • -fno-show-source-location โ€” do not include source location information with diagnostics. Even vaguer. Maximum mystery ๐Ÿ’…
  • -fno-signed-char โ€” char is unsigned. That's it, that's the whole vibe ๐ŸŒธ
  • -fno-signed-zeros โ€” allow optimizations that ignore the sign of floating point zeros. -0.0 and +0.0 stop being distinguishable, lowkey sad but speed is speed ๐Ÿฆ‹
  • -fno-skip-odr-check-in-gmf โ€” perform ODR checks for decls in the global module fragment ๐Ÿงš
  • -fno-spell-checking โ€” disables spell-checking. Your typos are your business now ๐Ÿ™ˆ
  • -fno-split-machine-functions โ€” disables late function splitting using profile information. Applies to x86 and aarch64 ELF only ๐Ÿ’œ
  • -fno-split-stack โ€” quote unquote "wouldn't use segmented stack" ๐Ÿซฅ (that's genuinely what the manpage says bestie, I'm just delivering it with love)
  • -fno-stack-clash-protection โ€” disables stack clash protection ๐Ÿ’€
  • -fno-stack-protector โ€” disables the use of stack protectors. Your stack, your problem, your consequences ๐Ÿ˜ญ
  • -fno-standalone-debug โ€” limit the debug information produced to reduce the size of the debug binary. Less info, smaller binary, that's the trade ๐ŸŽ€
  • -fno-strict-aliasing โ€” disables optimizations based on strict aliasing rules ๐ŸŒˆ
  • -fno-strict-float-cast-overflow โ€” relaxes language rules and tries to match the behavior of the target's native float-to-int conversion instructions ๐Ÿ“
  • -fno-strict-return โ€” don't treat control flow paths that fall off the end of a non-void function as unreachable. They are reachable, bestie, and they will be witnessed ๐Ÿ’…

And now we've arrived at the SYCL section ๐Ÿ’œ buckle up, this is a whole saga:

  • -fno-sycl-add-default-spec-consts-image โ€” turns off generation of the device image where all specialization constant usages are replaced with default values ๐ŸŽ€
  • -fno-sycl-allow-device-dependencies โ€” Deprecated: please use -fno-sycl-allow-device-image-dependencies instead. It's giving "old name, new name, pick the new one" ๐Ÿฆ‹
  • -fno-sycl-allow-device-image-dependencies โ€” do not allow dependencies between device code images. And yes, that's the default โœจ
  • -fno-sycl-dead-args-optimization โ€” disables elimination of DPC++ dead kernel arguments ๐Ÿ’€
  • -fno-sycl-decompose-functor โ€” do not decompose SYCL functor if possible. Marked experimental, CUDA only, so heads up ๐Ÿ“
  • -fno-sycl-device-code-split-esimd โ€” do not split ESIMD and SYCL device code into separate device binary images. Only has an effect for SPIR-based targets, and it's experimental ๐ŸŒธ
  • -fno-sycl-device-lib-jit-link โ€” disables sycl device library jit link. Experimental, iykyk ๐Ÿงš
  • -fno-sycl-device-lib=<value> โ€” controls exclusion of device libraries from device binary linkage. The valid arguments are libc, libm-fp32, libm-fp64, all ๐Ÿ’œ
  • -fno-sycl-early-optimizations โ€” disables the standard optimization pipeline for the SYCL device compiler ๐ŸŽ€
  • -fno-sycl-esimd-force-stateless-mem โ€” do not enforce using stateless memory accesses ๐Ÿฆ‹
  • -fno-sycl-explicit-simd โ€” disables the SYCL explicit SIMD extension. It's marked (deprecated), so, you know, be aware โœจ
  • -fno-sycl-force-inline-kernel-lambda โ€” disallow force inline SYCL kernels lambda in the entry point ๐Ÿ“
  • -fno-sycl-id-queries-fit-in-int โ€” do not assume that SYCL ID queries fit within MAX_INT ๐ŸŒธ
  • -fno-sycl-instrument-device-code โ€” do not add Instrumentation and Tracing Technology (ITT) instrumentation intrinsics calls. Experimental ๐Ÿงš
  • -fno-sycl-libspirv โ€” disables the check for libspirv ๐Ÿ’œ
  • -fno-sycl-link-spirv โ€” disables adding of the default (spir64) triple when it's discovered in user specified objects and archives ๐Ÿ‘‘

โœจ OPTIONS (continued) โœจ

  • -fno-sycl-rdc โ€” Generates relocatable device code while you're compiling a SYCL offload target. If you pair -fno-sycl-rdc with -c, you get final device binaries tucked inside the fat object it spits out. Heads up though bestie, every single kernel has to be completely self-contained inside its own translation unit (so like, the source file), which means SYCL_EXTERNAL is straight up not allowed when this is on. No cap.
  • -fno-sycl-remove-unused-external-funcs โ€” Stops the compiler from yeeting unused SYCL_EXTERNAL functions. Protect them at all costs ๐Ÿ’–
  • -fno-sycl-unnamed-lambda โ€” Unnamed SYCL lambda kernels? Not today. This disallows them entirely.
  • -fno-sycl-use-bitcode โ€” Says "use SPIR-V instead of LLVM bitcode in fat objects." It's giving deprecated energy, so don't get too attached ๐Ÿฅ€
  • -fno-sycl-use-footer โ€” Turns off usage of the integration footer during SYCL-enabled compilations.
  • -fno-sycl โ€” Disables those SYCL C++ extensions. Bye bestie ๐Ÿ‘‹
  • -fno-system-debug โ€” No debug info for declarations sitting in system headers. Not their moment.
  • -fno-temp-file โ€” Creates compilation output files directly instead of the temp-file dance. โš ๏ธ Warning bestie: this may lead to incorrect incremental builds if the compiler crashes. Risky business, proceed with caution.
  • -fno-threadsafe-statics โ€” Don't emit code to make initialization of local statics thread safe. Living dangerously, I see.
  • -fno-trigraphs โ€” Do not process trigraph sequences. Trigra-what? Yeah, we're skipping them.
  • -fno-unified-lto โ€” Uses distinct LTO pipelines. Separate vibes for separate pipelines, periodt.
  • -fno-unique-section-names โ€” Doesn't use unique names for text and data sections. Basic names only, no creative flair.
  • -fno-unroll-loops โ€” Turns off the loop unroller. The loops stay smol. No unrolling today ๐ŸŒ€
  • -fno-use-cxa-atexit โ€” Don't use __cxa_atexit for calling destructors. We're doing it a different way.
  • -fno-use-init-array โ€” Uses .ctors/.dtors instead of .init_array/.fini_array. Old school, lowkey.
  • -fno-verify-intermediate-code โ€” Disables verification of LLVM IR. The compiler just... trusts itself ๐Ÿ™ˆ
  • -fno-visibility-inlines-hidden-static-local-var โ€” Disables -fvisibility-inlines-hidden-static-local-var. Fun fact: this is already the default on non-darwin targets, so it's giving "extra".
  • -fno-xray-function-index โ€” Omits the function index section. The trade-off? Single-function patching performance takes a hit. Nothing's free bestie ๐Ÿ˜ญ
  • -fno-zero-initialized-in-bss โ€” Don't place zero initialized data in BSS. It goes somewhere else, I guess.
  • -fno-zos-extensions โ€” Does not accept the non-standard constructs that the z/OS compiler supports. Keep it standard, keep it clean.
  • -fobjc-arc-exceptions โ€” Uses EH-safe code when synthesizing retains and releases in -fobjc-arc. Exception-safe and thriving โœจ
  • -fobjc-arc โ€” Synthesizes retain and release calls for Objective-C pointers. Automatic reference counting said "I got you" ๐Ÿซถ
  • -fobjc-avoid-heapify-local-blocks โ€” Tries to avoid heapifying local blocks. Keep them stack-y, keep them local.
  • -fobjc-disable-direct-methods-for-testing โ€” Ignores the attribute objc_direct so that direct methods can actually be tested. Testing era, so valid.
  • -fobjc-encode-cxx-class-template-spec โ€” Fully encodes c++ class template specialization. Fully. No half measures.
  • -fobjc-exceptions โ€” Enables Objective-C exceptions. Let them cook ๐Ÿณ
  • -fobjc-runtime=<value> โ€” Specify the target Objective-C runtime kind and version. You pick the vibe.
  • -fobjc-weak โ€” Enables ARC-style weak references in Objective-C. Weak but make it intentional ๐Ÿ’…
  • -foffload-fp32-prec-div โ€” fdiv operations in offload device code are required to return correctly rounded results. Precision is the moment.
  • -foffload-fp32-prec-sqrt โ€” sqrt operations in offload device code are required to return correctly rounded results. Same energy, but for square roots ๐Ÿ“
  • -foffload-implicit-host-device-templates โ€” Template functions or specializations that don't have host, device and global attributes get implicit host device attributes. CUDA/HIP only, so don't try this everywhere.
  • -foffload-lto=<value> โ€” Set LTO mode for offload compilation. You choose the mode, bestie.
  • -foffload-lto โ€” Enables LTO in 'full' mode for offload compilation. The whole thing, no crumbs.
  • -foffload-uniform-block โ€” Assumes kernels are launched with uniform block sizes. Default is true for CUDA/HIP and false otherwise. Depends on your target, iykyk.
  • -foffload-via-llvm โ€” Uses LLVM/Offload as the portable offloading runtime. Portable and proud ๐ŸŒˆ
  • -fomit-frame-pointer โ€” Omits the frame pointer from functions that don't need it. Some stack unwinding cases โ€” profilers and sanitizers, for example โ€” might prefer you pass -fno-omit-frame-pointer instead. On many targets, -O1 and higher omit the frame pointer by default. Also, -m[no-]omit-leaf-frame-pointer takes precedence for leaf functions, so keep that in mind.
  • -fopenacc โ€” Enables OpenACC. Let's go ๐Ÿš€
  • -fopenmp-extensions โ€” Enables all Clang extensions for OpenMP directives and clauses. All of them. Every last one.
  • -fopenmp-force-usm โ€” Forces the behavior as if the user specified pragma omp requires unified_shared_memory. You didn't ask but here it is.
  • -fopenmp-offload-mandatory โ€” Does not create a host fallback if offloading to the device fails. It's offload or nothing. Periodt.
  • -fopenmp-simd โ€” Emits OpenMP code only for SIMD-based constructs. SIMD-only zone.
  • -fopenmp-target-debug โ€” Enables debugging in the OpenMP offloading device RTL. Debug era, we love to see it ๐Ÿ”ฅ
  • -fopenmp-target-jit โ€” Emits code that can be JIT compiled for OpenMP offloading. Also implies -foffload-lto=full, so it's bringing a friend.
  • -fopenmp-targets=<value> โ€” Specify a comma-separated list of triples for OpenMP offloading targets to be supported. Comma girlies rise ๐ŸŒธ
  • -fopenmp-version=<value> โ€” Set the OpenMP version. Like 45 for OpenMP 4.5, or 51 for OpenMP 5.1. Default value is 51 for Clang.
  • -fopenmp โ€” Parses OpenMP pragmas and generates parallel code. The classic. The icon.
  • -foperator-arrow-depth=<value> โ€” Maximum number of 'operator->'s to call for a member access. Don't go too deep, bestie.
  • -foptimization-record-file=<file> โ€” Specify the output name of the file containing the optimization remarks. Implies -fsave-optimization-record. โš ๏ธ On Darwin platforms, this cannot be used with multiple -arch <arch> options. No mixing, sorry.
  • -foptimization-record-passes=<regex> โ€” Only includes passes that match a specified regular expression in the generated optimization record. By default, it includes all passes.
  • -forder-file-instrumentation โ€” Generates instrumented code to collect order file into default.profraw file (overridden by the '=' form of option or the LLVM_PROFILE_FILE env var). Deprecated, please use -ftemporal-profile instead. We're moving on ๐Ÿ’€
  • -fpack-struct=<value> โ€” Specify the default maximum struct packing alignment. Keep your structs tight.
  • -fpascal-strings โ€” Recognizes and constructs Pascal-style string literals. Retro moment ๐ŸŽ€
  • -fpass-plugin=<dsopath> โ€” Load pass plugin from a dynamic shared object file. Only works with the new pass manager, so know which one you're on.
  • -fpatchable-function-entry=<N,M> โ€” Generates M NOPs before function entry and N-M NOPs after function entry. NOP NOP NOP โœจ
  • -fpcc-struct-return โ€” Overrides the default ABI to return all structs on the stack. Every single one.
  • -fpch-codegen โ€” Generates code for uses of this PCH that assumes an explicit object file will be built for the PCH. Assuming era.
  • -fpch-debuginfo โ€” Generates debug info for types in an object file built from this PCH, and does not generate them elsewhere. One place only, exclusive ๐Ÿซถ
  • -fpch-instantiate-templates โ€” Instantiates templates already while building a PCH. Get ahead of it, bestie.
  • -fpch-validate-input-files-content โ€” Validates PCH input files based on content if mtime differs. Content over timestamps, we love that.
  • -fplugin-arg-<name>-<arg> โ€” Passes <arg> to plugin <name>. Say it with your chest.
  • -fplugin=<dsopath> โ€” Loads the named plugin (a dynamic shared object). Plug it in ๐Ÿ”Œ
  • -fprebuilt-implicit-modules โ€” Looks up implicit modules in the prebuilt module path. Already prebuilt, already iconic.
  • -fprebuilt-module-path=<directory> โ€” Specify the prebuilt module path. Tell it where to look.
  • -fpreview-breaking-changes โ€” When specified, it informs the compiler driver and compilation phases that it's allowed to break backward compatibility. When this option is specified, the compiler will also set the macro __INTEL_PREVIEW_BREAKING_CHANGES. And when you use this in conjunction with -fsycl, the driver will link against an alternate form of libsycl, libsycl-preview. Breaking changes? In this economy? ๐Ÿ‘‘
  • -fproc-stat-report=<value> โ€” Saves subprocess statistics to the given file. Receipts ๐Ÿ“
  • -fproc-stat-report<value> โ€” Prints subprocess statistics. Just say it out loud, no file needed.
  • -fprofile-arcs โ€” Instruments code to produce gcov data files (*.gcda). Coverage girlies, this one's for you.
  • -fprofile-exclude-files=<value> โ€” Instruments only functions from files where names don't match all the regexes separated by a semi-colon. Excluding with precision.
  • -fprofile-filter-files=<value> โ€” Instruments only functions from files where names match any regex separated by a semi-colon. Including with precision.
  • -fprofile-function-groups=<N> โ€” Partitions functions into N groups and selects only functions in group i to be instrumented using -fprofile-selected-function-group. Divide and conquer.
  • -fprofile-generate-cold-function-coverage=<directory> โ€” Generates instrumented code to collect coverage info for cold functions into <directory>/default.profraw (overridden by the LLVM_PROFILE_FILE env var). Cold functions need love too โ„๏ธ
  • -fprofile-generate-cold-function-coverage โ€” Generates instrumented code to collect coverage info for cold functions into the default.profraw file (overridden by the '=' form of option or the LLVM_PROFILE_FILE env var). Same energy, default location.
  • -fprofile-generate=<directory> โ€” Generates instrumented code to collect execution counts into <directory>/default.profraw (overridden by the LLVM_PROFILE_FILE env var). Counts went up ๐Ÿ“ˆ
  • -fprofile-generate โ€” Generates instrumented code to collect execution counts into default.profraw (overridden by the LLVM_PROFILE_FILE env var). Default file, default vibes.
  • -fprofile-instr-generate=<file> โ€” Generates instrumented code to collect execution counts into <file> (overridden by the LLVM_PROFILE_FILE env var). You name it, it goes there.
  • -fprofile-instr-generate โ€” Generates instrumented code to collect execution counts into the default.profraw file (overridden by the '=' form of option or the LLVM_PROFILE_FILE env var). The classic combo.
  • -fprofile-instr-use=<value> โ€” Uses instrumentation data for profile-guided optimization. Data girlies, assemble.
  • -fprofile-list=<value> โ€” Filename defining the list of functions/files to instrument. The file uses the sanitizer special case list format. Very specific, very slay.
  • -fprofile-remapping-file=<file> โ€” Uses the remappings described in <file> to match the profile data against names in the program. Match made in heaven ๐Ÿ’–
  • -fprofile-sample-accurate โ€” Specifies that the sample profile is accurate. Accurate era, no notes.
  • -fprofile-sample-use=<value> โ€” Enables sample-based profile guided optimizations. Samples said optimize.
  • -fprofile-selected-function-group=<i> โ€” Partitions functions into N groups using -fprofile-function-groups and selects only functions in group i to be instrumented. The valid range is 0 to N-1 inclusive. Stay in your lane (literally).
  • -fprofile-update=<method> โ€” Set the update method of profile counters. You choose the method, bestie.
  • -fprofile-use=<pathname> โ€” Uses instrumentation data for profile-guided optimization. If pathname is a directory, it reads from <pathname>/default.profdata. Otherwise, it reads from file <pathname>. Two paths, one option.
  • -fprotect-parens โ€” Determines whether the optimizer honors parentheses when floating-point expressions are evaluated. Respect the parentheses, they're there for a reason ๐ŸŽ€
  • -fpseudo-probe-for-profiling โ€” emit pseudo probes so you can do sample profiling, bestie ๐Ÿ“Š
  • -fptrauth-auth-traps โ€” turns on traps when authentication fails (so a bad auth doesn't silently slide through, it catches it) ๐Ÿชค
  • -fptrauth-calls โ€” signs and authenticates literally all indirect calls, no cap ๐Ÿ“ž
  • -fptrauth-elf-got โ€” enables authentication of pointers coming from the GOT. ELF only, so don't try this on your Mach-O bestie ๐Ÿ’…
  • -fptrauth-function-pointer-type-discrimination โ€” turns on type discrimination for C function pointers ๐ŸŽฏ
  • -fptrauth-indirect-gotos โ€” signs and authenticates indirect goto targets (yes, the chaos jump is getting protected too) ๐Ÿฆ˜
  • -fptrauth-init-fini-address-discrimination โ€” enables address discrimination of function pointers in init/fini arrays ๐Ÿ“
  • -fptrauth-init-fini โ€” enables signing of the function pointers in init/fini arrays โœ๏ธ
  • -fptrauth-intrinsics โ€” turns on pointer authentication intrinsics ๐Ÿงฌ
  • -fptrauth-returns โ€” signs and authenticates return addresses. your stack is protected, periodt ๐Ÿ›ก๏ธ
  • -fptrauth-type-info-vtable-pointer-discrimination โ€” enables type and address discrimination of the vtable pointer of std::type_info ๐Ÿ‘‘
  • -fptrauth-vtable-pointer-address-discrimination โ€” enables address discrimination of vtable pointers ๐Ÿ“Œ
  • -fptrauth-vtable-pointer-type-discrimination โ€” enables type discrimination of vtable pointers ๐Ÿท๏ธ
  • -frandomize-layout-seed-file=<file> โ€” the file that holds the seed used by the randomize structure layout feature ๐Ÿ—‚๏ธ
  • -frandomize-layout-seed=<seed> โ€” the actual seed used by the randomize structure layout feature ๐ŸŒฑ
  • -fraw-string-literals โ€” turns on raw string literals โœจ
  • -freciprocal-math โ€” lets division operations get reassociated (math go brrr, but like, carefully) โž—
  • -freg-struct-return โ€” overrides the default ABI so small structs get returned in registers instead ๐Ÿ“ฆ
  • -fregister-global-dtors-with-atexit โ€” uses atexit or __cxa_atexit to register global destructors ๐Ÿงน
  • -fropi โ€” generate read-only position independent code. ARM only, so check your arch first ๐Ÿ’ช
  • -frtlib-add-rpath โ€” adds -rpath with the architecture-specific resource directory to the linker flags. And when --hip-link is specified, it also adds -rpath with the HIP runtime library directory to the linker flags ๐Ÿงญ
  • -frtlib-defaultlib โ€” on Windows, emits /defaultlib: directives to link compiler-rt libraries. This one's the default ๐ŸชŸ
  • -frwpi โ€” generate read-write position independent code. ARM only again ๐Ÿฆพ
  • -fsafe-buffer-usage-suggestions โ€” shows you suggestions to update code that's associated with -Wunsafe-buffer-usage warnings. it's literally just trying to help ๐Ÿ˜ญ
  • -fsample-profile-use-profi โ€” uses profi to infer block and edge counts ๐Ÿ”
  • -fsanitize-address-destructor=<value> โ€” sets the kind of module destructors emitted by AddressSanitizer instrumentation. These destructors get emitted to unregister instrumented global variables when code is unloaded (like via dlclose()) ๐Ÿงผ
  • -fsanitize-address-field-padding=<value> โ€” sets the level of field padding for AddressSanitizer ๐Ÿ›‹๏ธ
  • -fsanitize-address-globals-dead-stripping โ€” enables linker dead stripping of globals in AddressSanitizer โœ‚๏ธ
  • -fsanitize-address-outline-instrumentation โ€” always generates function calls for address sanitizer instrumentation, no shortcuts ๐Ÿ“ž
  • -fsanitize-address-poison-custom-array-cookie โ€” enables poisoning array cookies when you're using custom operator new[] in AddressSanitizer โ˜ ๏ธ
  • -fsanitize-address-use-after-return=<mode> โ€” selects the mode for detecting stack use-after-return in AddressSanitizer ๐Ÿ‘ป
  • -fsanitize-address-use-after-scope โ€” enables use-after-scope detection in AddressSanitizer ๐Ÿ”Ž
  • -fsanitize-address-use-odr-indicator โ€” enables ODR indicator globals so you avoid false ODR violation reports in partially sanitized programs โ€” the tradeoff being an increase in binary size โš–๏ธ
  • -fsanitize-cfi-canonical-jump-tables โ€” makes the jump table addresses canonical in the symbol table ๐Ÿ“‹
  • -fsanitize-cfi-cross-dso โ€” enables control flow integrity (CFI) checks for cross-DSO calls ๐Ÿ”—
  • -fsanitize-cfi-icall-experimental-normalize-integers โ€” normalizes integers in CFI indirect call type signature checks ๐Ÿ”ข
  • -fsanitize-cfi-icall-generalize-pointers โ€” generalizes pointers in CFI indirect call type signature checks ๐Ÿ‘‰๐Ÿ‘ˆ
  • -fsanitize-coverage-allowlist=<value> โ€” restricts sanitizer coverage instrumentation exclusively to the modules and functions that match the provided special case list โ€” except the blocked ones ๐Ÿšง
  • -fsanitize-coverage-ignorelist=<value> โ€” disables sanitizer coverage instrumentation for the modules and functions that match the provided special case list โ€” even the allowed ones ๐Ÿ™…
  • -fsanitize-coverage=<value> โ€” specifies the type of coverage instrumentation for Sanitizers ๐Ÿ“ˆ
  • -fsanitize-hwaddress-abi=<value> โ€” selects the HWAddressSanitizer ABI to target, either interceptor or platform, default interceptor. Heads up: this option is currently unused ๐Ÿ’€
  • -fsanitize-hwaddress-experimental-aliasing โ€” enables aliasing mode in HWAddressSanitizer ๐ŸŒ€
  • -fsanitize-ignorelist=<value> โ€” the path to the ignorelist file for sanitizers ๐Ÿ—’๏ธ
  • -fsanitize-memory-param-retval โ€” enables detection of uninitialized parameters and return values ๐Ÿ‘€
  • -fsanitize-memory-track-origins=<value> โ€” enables origins tracking in MemorySanitizer ๐Ÿ•ต๏ธ
  • -fsanitize-memory-track-origins โ€” same vibe, no value: enables origins tracking in MemorySanitizer ๐Ÿ•ต๏ธโ™€๏ธ
  • -fsanitize-memory-use-after-dtor โ€” enables use-after-destroy detection in MemorySanitizer ๐Ÿ’ฅ
  • -fsanitize-memtag-mode=<value> โ€” sets the default MTE mode to 'sync' (that's the default) or 'async' โฑ๏ธ
  • -fsanitize-merge=<value> โ€” lets the compiler merge handlers for the sanitizers you specify ๐Ÿค
  • -fsanitize-merge โ€” lets the compiler merge handlers for all sanitizers ๐Ÿค๐Ÿค
  • -fsanitize-recover=<value> โ€” enables recovery for the sanitizers you specify ๐Ÿฉน
  • -fsanitize-skip-hot-cutoff=<value> โ€” excludes sanitization for the top hottest code responsible for the given fraction of PGO counters (0.0 [default] = skip none; 1.0 = skip all). The argument format is:
<sanitizer1>=<value1>,<sanitizer2>=<value2>,...

๐Ÿ”ฅ

  • -fsanitize-stable-abi โ€” stable ABI instrumentation for the sanitizer runtime. Default: Conventional ๐Ÿงฑ
  • -fsanitize-stats โ€” enables sanitizer statistics gathering ๐Ÿ“Š
  • -fsanitize-system-ignorelist=<value> โ€” the path to the system ignorelist file for sanitizers ๐Ÿ—‚๏ธ
  • -fsanitize-thread-atomics โ€” enables atomic operations instrumentation in ThreadSanitizer (default) โš›๏ธ
  • -fsanitize-thread-func-entry-exit โ€” enables function entry/exit instrumentation in ThreadSanitizer (default) ๐Ÿšช
  • -fsanitize-thread-memory-access โ€” enables memory access instrumentation in ThreadSanitizer (default) ๐Ÿง 
  • -fsanitize-trap=<value> โ€” enables trapping for the sanitizers you specify ๐Ÿชค
  • -fsanitize-trap โ€” enables trapping for all sanitizers ๐Ÿชค๐Ÿชค
  • -fsanitize-undefined-ignore-overflow-pattern=<value> โ€” specifies the overflow patterns to exclude from arithmetic sanitizer instrumentation ๐Ÿšซ
  • -fsanitize-undefined-strip-path-components=<number> โ€” strips (or, if negative, keeps only) a given number of path components when emitting check metadata โœ‚๏ธ
  • -fsanitize=<check> โ€” turns on runtime checks for various forms of undefined or suspicious behavior. Peep the user manual for the available checks (iykyk) ๐Ÿ”
  • -fsave-optimization-record=<format> โ€” generates an optimization record file in the specific format you pick ๐Ÿ—ƒ๏ธ
  • -fsave-optimization-record โ€” generates a YAML optimization record file ๐Ÿ—„๏ธ
  • -fseh-exceptions โ€” use SEH style exceptions ๐ŸชŸ
  • -fseparate-named-sections โ€” use separate unique sections for named sections. ELF Only ๐Ÿงฉ
  • -fshort-enums โ€” allocate to an enum type only as many bytes as it needs for the declared range of possible values ๐Ÿ“
  • -fshort-wchar โ€” forces wchar_t to be a short unsigned int ๐Ÿฉณ
  • -fshow-overloads=<value> โ€” which overload candidates to show when overload resolution fails. Defaults to 'all' ๐ŸŽญ
  • -fshow-skipped-includes โ€” shows skipped includes in -H output ๐Ÿ‘๏ธ
  • -fsigned-char โ€” char is signed โœ๏ธ
  • -fsized-deallocation โ€” enables C++14 sized global deallocation functions ๐Ÿ—‘๏ธ
  • -fsjlj-exceptions โ€” use SjLj style exceptions ๐ŸŽข
  • -fskip-odr-check-in-gmf โ€” skip ODR checks for decls in the global module fragment ๐Ÿšซ
  • -fslp-vectorize โ€” enables the superword-level parallelism vectorization passes ๐ŸŽ๏ธ
  • -fspell-checking-limit=<value> โ€” sets the max number of times to spell check unrecognized identifiers (0 = no limit) ๐Ÿ”ค
  • -fsplit-dwarf-inlining โ€” provides minimal debug info in the object/executable to make online symbolication/stack traces possible in the absence of .dwo/.dwp files when you're using Split DWARF ๐Ÿช“
  • -fsplit-lto-unit โ€” enables splitting of the LTO unit ๐Ÿชš
  • -fsplit-machine-functions โ€” enables late function splitting using profile information (x86 and aarch64 ELF) ๐Ÿฐ
  • -fsplit-stack โ€” use segmented stack ๐Ÿฅž
  • -fstack-clash-protection โ€” enables stack clash protection ๐Ÿ›ก๏ธ
  • -fstack-protector-all โ€” enables stack protectors for all functions, absolutely everyone gets one ๐Ÿ’…
  • -fstack-protector-strong โ€” enables stack protectors for some functions vulnerable to stack smashing. Compared to -fstack-protector, this uses a stronger heuristic that includes functions containing arrays of any size (and any type), plus any calls to alloca or the taking of an address from a local variable ๐Ÿ’ช
  • -fstack-protector โ€” enables stack protectors for some functions vulnerable to stack smashing. This uses a loose heuristic that considers functions vulnerable if they contain a char (or 8bit integer) array or constant sized calls to alloca, which are of greater size than ssp-buffer-size (default: 8 bytes). All variable sized calls to alloca are considered vulnerable. A function with a stack protector has a guard value added to the stack frame that gets checked on function exit. The guard value must be positioned in the stack frame such that a buffer overflow from a vulnerable variable will overwrite the guard value before overwriting the function's return address. The reference stack guard value is stored in a global variable ๐Ÿ›ก๏ธ
  • -fstack-size-section โ€” emit a section containing metadata on function stack sizes ๐Ÿ“
  • -fstack-usage โ€” emit a .su file containing information on function stack sizes ๐Ÿ“
  • -fstandalone-debug โ€” emit full debug info for all types used by the program ๐Ÿ›
  • -fstrict-aliasing โ€” enables optimizations based on strict aliasing rules โšก
  • -fstrict-enums โ€” enables optimizations based on the strict definition of an enum's value range ๐ŸŽฏ
  • -fstrict-flex-arrays=<n> โ€” okay so this one turns on optimizations that are based on the strict definition of flexible arrays โœจ it's giving "trust the rules" energy, fr fr.
  • -fstrict-float-cast-overflow โ€” lowkey assume that overflowing float-to-int casts are undefined, no cap ๐Ÿ’€ and yes, that's the default.
  • -fstrict-vtable-pointers โ€” turns on optimizations based on the strict rules for overwriting polymorphic C++ objects ๐Ÿ‘‘ main character energy.
  • -fswift-async-fp=<option> โ€” controls the emission of Swift async extended frame info ๐Ÿฆ‹.
  • -fsycl-add-default-spec-consts-image โ€” generates a copy of every device image that uses a specialization constant and replaces all usages of that specialization constant with default values specified by specialization_id ๐ŸŽ€. if a device image does not use a specialization constant at all, then no copy is generated, periodt. this option is only useful if used in conjunction with Ahead of Time Compilation (-fsycl-target command line option) ๐Ÿ’….
  • -fsycl-allow-device-dependencies โ€” deprecated, bestie ๐Ÿ˜ญ please use -fsycl-allow-device-image-dependencies instead.
  • -fsycl-allow-device-image-dependencies โ€” slay, allow dependencies between device code images ๐Ÿ’–.
  • -fsycl-dead-args-optimization โ€” enables elimination of DPC++ dead kernel arguments ๐Ÿ”ฅ it's giving cleanup era.
  • -fsycl-decompose-functor โ€” do decompose SYCL functor if possible (experimental, CUDA only) ๐Ÿงš.
  • -fsycl-default-sub-group-size <value> โ€” set the default sub group size for SYCL kernels ๐Ÿ‘‘.
  • -fsycl-device-code-split-esimd โ€” split ESIMD device code from SYCL into a separate device binary image (this is the default) ๐ŸŒˆ. has effect only for SPIR-based targets. (experimental) ๐Ÿ’€.
  • -fsycl-device-code-split=<value> โ€” perform SYCL device code split: per_kernel (device code module is created for each SYCL kernel) | per_source (device code module is created for each source (translation unit)) | off (no device code split). | auto (use heuristic to select the best way of splitting device code). default is 'auto' โ€” use heuristic to distribute device code across modules โœจ.
  • -fsycl-device-code-split โ€” perform SYCL device code split in the 'auto' mode, i.e. use heuristic to distribute device code across modules ๐ŸŽ€.
  • -fsycl-device-lib-jit-link โ€” enables sycl device library jit link (experimental) ๐Ÿฆ‹.
  • -fsycl-device-lib=<value> โ€” control inclusion of device libraries into device binary linkage. valid arguments are libc, libm-fp32, libm-fp64, libimf-fp32, libimf-fp64, libimf-bf16, all ๐Ÿ’….
  • -fsycl-device-obj=<value> โ€” specify format of device code stored in the resulting object. valid values are: spirv, llvmir (default) โœจ.
  • -fsycl-device-only โ€” compile SYCL kernels for device ๐Ÿ”ฅ.
  • -fsycl-disable-range-rounding โ€” deprecated, bestie ๐Ÿ˜ญ please use -fsycl-range-rounding=disable instead.
  • -fsycl-dump-device-code=<value> โ€” dump device code into the user provided directory. ๐Ÿ‘‘
  • -fsycl-early-optimizations โ€” enable standard optimization pipeline for SYCL device compiler ๐ŸŒธ.
  • -fsycl-embed-ir โ€” embed LLVM IR for runtime kernel fusion ๐Ÿงš.
  • -fsycl-esimd-force-stateless-mem โ€” enforce using stateless memory accesses. convert stateful accesses via SYCL accessors to stateless within ESIMD kernels. enabled by default ๐Ÿ’–.
  • -fsycl-exp-range-rounding โ€” use experimental range rounding. ๐Ÿฆ‹.
  • -fsycl-explicit-simd โ€” enable SYCL explicit SIMD extension. (deprecated) ๐Ÿ’€.
  • -fsycl-footer-path=<value> โ€” specify the location of the temporary source file with the included integration footer. ๐ŸŽ€.
  • -fsycl-force-inline-kernel-lambda โ€” allow force inline SYCL kernels lambda in entry point ๐Ÿ”ฅ.
  • -fsycl-force-target=<value> โ€” force the usage of the given triple when extracting device code from any given objects on the command line ๐Ÿ‘‘.
  • -fsycl-fp32-prec-sqrt โ€” SYCL only. specify that single precision floating-point sqrt is correctly rounded. (deprecated) ๐Ÿ˜ญ.
  • -fsycl-fp64-conv-emu โ€” enable fp64 partial emulation for kernels with only fp64 conversion operations and no fp64 computation operations (requires Intel GPU backend supporting fp64 partial emulation). ๐Ÿ’….
  • -fsycl-help=<value> โ€” emit help information from the related offline compilation tool. valid values: all, fpga, gen, x86_64. โœจ.
  • -fsycl-help โ€” emit help information from all of the offline compilation tools ๐ŸŒˆ.
  • -fsycl-host-compiler-options=<value> โ€” when performing the host compilation with -fsycl-host-compiler specified, use the given options during that compile. options are expected to be a quoted list of space separated options. ๐ŸŽ€.
  • -fsycl-host-compiler=<value> โ€” specify C++ compiler binary to perform host compilation with during SYCL offload compiles. ๐Ÿ‘‘.
  • -fsycl-host-only โ€” compile SYCL code for host only. has no effect on non-SYCL compilations ๐Ÿ’–.
  • -fsycl-id-queries-fit-in-int โ€” assume that SYCL ID queries fit within MAX_INT. ๐Ÿ”ฅ.
  • -fsycl-instrument-device-code โ€” add Instrumentation and Tracing Technology (ITT) instrumentation intrinsics calls (experimental) ๐Ÿงš.
  • -fsycl-libspirv-path=<value> โ€” path to libspirv library ๐Ÿฆ‹.
  • -fsycl-link โ€” generate partially linked device object to be used with the host link ๐Ÿ’….
  • -fsycl-max-parallel-link-jobs=<value> โ€” controls the maximum parallelism of actions performed on SYCL device code post-link, i.e. the generation of SPIR-V device images or AOT compilation of each device image. (experimental) โœจ.
  • -fsycl-optimize-non-user-code โ€” option used in conjunction with -O0 to optimize SYCL framework utility functions and leave user's kernel code unoptimized. (experimental) ๐ŸŽ€.
  • -fsycl-range-rounding=<value> โ€” options for range rounding of SYCL range kernels: disable (do not generate range rounded kernels) force (only generate range rounded kernels) on (generate range rounded kernels as well as unrounded kernels). default is 'on' ๐Ÿ‘‘.
  • -fsycl-remove-unused-external-funcs โ€” allow removal of unused SYCL_EXTERNAL functions (default) ๐Ÿ”ฅ.
  • -fsycl-targets=<value> โ€” specify comma-separated list of triples SYCL offloading targets to be supported ๐ŸŒˆ.
  • -fsycl-unnamed-lambda โ€” allow unnamed SYCL lambda kernels ๐Ÿ’–.
  • -fsycl-use-bitcode โ€” use LLVM bitcode instead of SPIR-V in fat objects (deprecated) ๐Ÿ’€.
  • -fsycl โ€” enable SYCL C++ extensions โœจ.
  • -fsyntax-only โ€” run the preprocessor, parser and semantic analysis stages ๐ŸŽ€.
  • -fsystem-debug โ€” emit debug information for declarations in system headers ๐Ÿ‘‘.
  • -fsystem-module โ€” build this module as a system module. only used with -emit-module ๐Ÿ”ฅ.
  • -ftarget-compile-fast โ€” experimental feature: reduce target compilation time, with potential runtime performance trade-off. ๐Ÿงš.
  • -ftarget-export-symbols โ€” expose exported symbols in a generated target library to allow for visibilty to other modules. ๐Ÿ’….
  • -ftarget-register-alloc-mode=<value> โ€” specify a register allocation mode for specific hardware for use by supported target backends. โœจ.
  • -ftemplate-backtrace-limit=<value> โ€” set the maximum number of entries to print in a template instantiation backtrace (0 = no limit) ๐ŸŽ€.
  • -ftemplate-depth=<value> โ€” set the maximum depth of recursive template instantiation ๐Ÿ‘‘.
  • -ftemporal-profile โ€” generate instrumented code to collect temporal information ๐Ÿ”ฅ.
  • -ftest-coverage โ€” produce gcov notes files (*.gcno) ๐Ÿ’–.
  • -fthin-link-bitcode=<value> โ€” write minimized bitcode to <file> for the ThinLTO thin link only ๐Ÿฆ‹.
  • -fthinlto-index=<value> โ€” perform ThinLTO importing using provided function summary index ๐ŸŒˆ.
  • -ftime-report=<value> โ€” (for new pass manager) 'per-pass': one report for each pass; 'per-pass-run': one report for each pass invocation โœจ.
  • -ftime-trace-granularity=<value> โ€” minimum time granularity (in microseconds) traced by time profiler ๐ŸŽ€.
  • -ftime-trace-verbose<value> โ€” make time trace capture verbose event details (e.g. source filenames). this can increase the size of the output by 2-3 times ๐Ÿ‘‘.
  • -ftime-trace=<value> โ€” similar to -ftime-trace. specify the JSON file or a directory which will contain the JSON file ๐Ÿ”ฅ.
  • -ftime-trace โ€” turn on time profiler. generates JSON file based on output filename. ๐Ÿ’–.
  • -ftrap-function=<value> โ€” issue call to specified function rather than a trap instruction ๐Ÿงš.
  • -ftrapv-handler=<function name> โ€” specify the function to be called on overflow ๐Ÿ’….
  • -ftrapv โ€” trap on integer overflow โœจ.
  • -ftrigraphs โ€” process trigraph sequences ๐ŸŽ€.
  • -ftrivial-auto-var-init-max-size=<value> โ€” stop initializing trivial automatic stack variables if var size exceeds the specified number of instances (in bytes) ๐Ÿ‘‘.
  • -ftrivial-auto-var-init-stop-after=<value> โ€” stop initializing trivial automatic stack variables after the specified number of instances ๐Ÿ”ฅ.
  • -ftrivial-auto-var-init=<value> โ€” initialize trivial automatic stack variables. defaults to 'uninitialized' ๐Ÿ’–.
  • -funified-lto โ€” use the unified LTO pipeline ๐Ÿฆ‹.
  • -funique-basic-block-section-names โ€” use unique names for basic block sections (ELF Only) ๐ŸŒˆ.
  • -funique-internal-linkage-names โ€” uniqueify Internal Linkage Symbol Names by appending the MD5 hash of the module path โœจ.
  • -funroll-loops โ€” turn on loop unroller ๐ŸŽ€.
  • -funsafe-math-optimizations โ€” allow unsafe floating-point math optimizations which may decrease precision ๐Ÿ‘‘.
  • -fuse-cuid=<value> โ€” method to generate ID's for compilation units for single source offloading languages CUDA and HIP: 'hash' (ID's generated by hashing file path and command line options) | 'random' (ID's generated as random numbers) | 'none' (disabled). default is 'hash'. this option will be overridden by option '-cuid=[ID]' if it is specified. ๐Ÿ”ฅ.
  • -fuse-line-directives โ€” use #line in preprocessed output ๐Ÿ’–.
  • -fvalidate-ast-input-files-content โ€” compute and store the hash of input files used to build an AST. files with mismatching mtime's are considered valid if both contents is identical ๐Ÿงš.
  • -fveclib=<value> โ€” use the given vector functions library. note: -fveclib={ArmPL,SLEEF} implies -fno-math-errno ๐Ÿ’….
  • -fvectorize โ€” enable the loop vectorization passes โœจ.
  • -fverbose-asm โ€” generate verbose assembly output ๐ŸŽ€.
  • -fverify-intermediate-code โ€” enable verification of LLVM IR ๐Ÿ‘‘.
  • -fvirtual-function-elimination โ€” turns on the dead virtual function elimination glow-up optimization โœจ but bestie it needs -flto=full to work, no cap.
  • -fvisibility-dllexport=<value> โ€” sets the visibility for dllexport definitions ๐Ÿ’…. If you pass Keep, the visibility justโ€ฆ stays exactly as it was, untouched, unbothered. Pairs with [-fvisibility-from-dllstorageclass].
  • -fvisibility-externs-dllimport=<value> โ€” the visibility for dllimport external declarations ๐Ÿซถ. Same deal: Keep means the visibility is not adjusted. Tied to [-fvisibility-from-dllstorageclass].
  • -fvisibility-externs-nodllstorageclass=<value> โ€” visibility for external declarations that have no explicit DLL storage class at all ๐Ÿ™ˆ. Pass Keep and nothing gets adjusted. Also [-fvisibility-from-dllstorageclass].
  • -fvisibility-from-dllstorageclass โ€” overrides the visibility of globals based on whatever their final DLL storage class ends up being ๐Ÿ”ฅ.
  • -fvisibility-global-new-delete-hidden โ€” gives the global C++ operator new and delete declarations hidden visibility ๐Ÿ‘‘
  • -fvisibility-global-new-delete=<value> โ€” the visibility for global C++ operator new and delete declarations. If you say 'source', the visibility is not adjusted, periodt.
  • -fvisibility-inlines-hidden-static-local-var โ€” when -fvisibility-inlines-hidden is enabled, static variables inside inline C++ member functions also get hidden visibility by default โœจ
  • -fvisibility-inlines-hidden โ€” inline C++ member functions get hidden visibility by default ๐Ÿ’…
  • -fvisibility-ms-compat โ€” global types get 'default' visibility while global functions and variables get 'hidden' visibility by default. It's giving "I contain multitudes" ๐ŸŒˆ.
  • -fvisibility-nodllstorageclass=<value> โ€” the visibility for definitions without an explicit DLL storage class. Keep = don't touch it ๐Ÿซถ. Works with [-fvisibility-from-dllstorageclass].
  • -fvisibility=<value> โ€” set the default symbol visibility for all global definitions. The main character of visibility flags, honestly ๐Ÿ‘‘.
  • -fwasm-exceptions โ€” use WebAssembly style exceptions ๐ŸŒธ
  • -fwhole-program-vtables โ€” enables whole-program vtable optimization. Requires -flto or it simply will not โœจ
  • -fwrapv-pointer โ€” treat pointer overflow as two's complement ๐Ÿ”„
  • -fwrapv โ€” treat signed integer overflow as two's complement ๐Ÿ”„
  • -fwritable-strings โ€” store string literals as writable data โœ๏ธ
  • -fxl-pragma-pack โ€” enable IBM XL #pragma pack handling ๐Ÿ’œ
  • -fxray-always-emit-customevents โ€” always emit __xray_customevent(...) calls, even when the function they live in isn't always instrumented ๐Ÿ”ฅ
  • -fxray-always-emit-typedevents โ€” always emit __xray_typedevent(...) calls, even if the containing function isn't always instrumented ๐Ÿ”ฅ
  • -fxray-always-instrument=<value> โ€” DEPRECATED babe, it's done ๐Ÿ˜ญ: a filename defining the whitelist for imbuing the 'always instrument' XRay attribute.
  • -fxray-attr-list=<value> โ€” a filename defining the list of functions/types for imbuing XRay attributes ๐Ÿ“
  • -fxray-function-groups=<value> โ€” only instrument 1 of N groups ๐Ÿ‘ฏ
  • -fxray-ignore-loops โ€” don't instrument functions with loops unless they also meet the minimum function size ๐Ÿ™…
  • -fxray-instruction-threshold=<value> โ€” sets the minimum function size to instrument with XRay ๐Ÿ“
  • -fxray-instrumentation-bundle=<value> โ€” pick which XRay instrumentation points to emit. Options: all, none, function-entry, function-exit, function, custom. Default is 'all'. Fun fact bestie: 'function' includes both 'function-entry' and 'function-exit' โœจ
  • -fxray-instrument โ€” generate XRay instrumentation sleds on function entry and exit ๐Ÿ›ท
  • -fxray-link-deps โ€” link the XRay runtime library when -fxray-instrument is specified. This is the default ๐Ÿ’…
  • -fxray-modes=<value> โ€” list of modes to link in by default into XRay instrumented binaries ๐ŸŽ€
  • -fxray-never-instrument=<value> โ€” DEPRECATED ๐Ÿ˜ญ: a filename defining the whitelist for imbuing the 'never instrument' XRay attribute.
  • -fxray-selected-function-group=<value> โ€” when you're using -fxray-function-groups, this picks which group of functions to instrument. Valid range is 0 to fxray-function-groups - 1 ๐ŸŽฏ
  • -fxray-shared โ€” enable shared library instrumentation with XRay ๐Ÿฆ‹
  • -fzero-call-used-regs=<value> โ€” clear call-used registers upon function return. Heads up: AArch64/x86 only โš ๏ธ
  • -fzos-extensions โ€” accept some non-standard constructs that the z/OS compiler supports ๐ŸŒŸ
  • -fzvector โ€” enable the System z vector language extension ๐Ÿ’ช
  • -F <value> โ€” add directory to the framework include search path ๐ŸŽ
  • --gcc-install-dir=<value> โ€” use the GCC installation living in the specified directory. That directory ends with path components like 'lib{,32,64}/gcc{,-cross}/$triple/$version'. โš ๏ธ Note: executables (e.g. ld) used by the compiler are not overridden by the selected GCC installation, so don't @ me.
  • --gcc-toolchain=<value> โ€” specify a directory where Clang can find 'include' and 'lib{,32,64}/gcc{,-cross}/$triple/$version'. Clang will pick the GCC installation with the largest version ๐Ÿ†
  • --gcc-triple=<value> โ€” search for the GCC installation with the specified triple ๐Ÿ”
  • -gcodeview-command-line โ€” emit the compiler path and command line into CodeView debug information ๐Ÿ“
  • -gcodeview-ghash โ€” emit type record hashes in a .debug$H section ๐Ÿงฎ
  • -gcodeview โ€” generate CodeView debug information ๐Ÿ›
  • -gdwarf-2 โ€” generate source-level debug information with dwarf version 2 ๐ŸŒฑ
  • -gdwarf-3 โ€” generate source-level debug information with dwarf version 3 ๐ŸŒฟ
  • -gdwarf-4 โ€” generate source-level debug information with dwarf version 4 ๐ŸŒณ
  • -gdwarf-5 โ€” generate source-level debug information with dwarf version 5 ๐ŸŒฒ
  • -gdwarf32 โ€” enables the DWARF32 format for ELF binaries, if debug information emission is enabled โœจ
  • -gdwarf64 โ€” enables the DWARF64 format for ELF binaries, if debug information emission is enabled โœจ
  • -gdwarf โ€” generate source-level debug information with the default dwarf version ๐Ÿ’…
  • -gembed-source โ€” embed the source text right into the DWARF debug sections ๐Ÿซถ
  • -gen-reproducer=<value> โ€” emit a reproducer on (option: off, crash (default), error, always) ๐ŸŽฌ
  • -gline-directives-only โ€” emit debug line info directives only, nothing more ๐Ÿ™…
  • -gline-tables-only โ€” emit debug line number tables only ๐Ÿ“Š
  • -gmodules โ€” generate debug info with external references to clang modules or precompiled headers ๐Ÿ”—
  • -gno-codeview-command-line โ€” don't emit the compiler path and command line into CodeView debug information ๐Ÿšซ
  • -gno-embed-source โ€” restore the default behavior of not embedding source text in DWARF debug sections โ†ฉ๏ธ
  • -gno-inline-line-tables โ€” don't emit inline line tables. That's it, that's the tweet ๐Ÿšซ
  • --gpu-bundle-output โ€” bundle output files of HIP device compilation ๐Ÿ“ฆ
  • --gpu-instrument-lib=<value> โ€” instrument device library for HIP, which is an LLVM bitcode containing __cyg_profile_func_enter and __cyg_profile_func_exit ๐Ÿ”ฌ
  • --gpu-max-threads-per-block=<value> โ€” default max threads per block for kernel launch bounds for HIP ๐Ÿงต
  • -gpulibc โ€” link the LLVM C Library for GPUs ๐ŸŽฎ
  • -gsplit-dwarf=<value> โ€” set DWARF fission mode โš›๏ธ
  • -gstrict-dwarf โ€” restrict DWARF features to only those defined in the specified version, avoiding features from later versions ๐Ÿ™…โ™€๏ธ
  • -gz=<value> โ€” DWARF debug sections compression type ๐Ÿ—œ๏ธ
  • -G <size> โ€” put objects of at most <size> bytes into the small data section (MIPS / Hexagon) ๐Ÿ˜
  • -g โ€” generate source-level debug information. The OG ๐Ÿ›
  • --help-hidden โ€” display help for hidden options ๐Ÿ™ˆ
  • -help โ€” display available options ๐Ÿ“–

  • --hip-device-lib=<value> โ€” HIP device library ๐ŸŽ€
  • --hip-link โ€” link clang-offload-bundler bundles for HIP ๐Ÿ”—
  • --hip-path=<value> โ€” HIP runtime installation path, used for finding the HIP version and adding the HIP include path ๐Ÿ›ฃ๏ธ
  • --hip-version=<value> โ€” HIP version in the format major.minor.patch ๐Ÿ”ข
  • --hipspv-pass-plugin=<dsopath> โ€” path to a pass plugin for HIP to SPIR-V passes ๐Ÿ”Œ
  • --hipstdpar-interpose-alloc โ€” replace all memory allocation / deallocation calls with hipManagedMalloc / hipFree equivalents โ™ป๏ธ
  • --hipstdpar-path=<value> โ€” HIP Standard Parallel Algorithm Acceleration library path, used for finding and implicitly including the library header ๐Ÿ“š
  • --hipstdpar-prim-path=<value> โ€” rocPrim path, required by the HIP Standard Parallel Algorithm Acceleration library, used to implicitly include the rocPrim library ๐ŸŒธ
  • --hipstdpar-thrust-path=<value> โ€” rocThrust path, required by the HIP Standard Parallel Algorithm Acceleration library, used to implicitly include the rocThrust library ๐Ÿฆ‹
  • --hipstdpar โ€” enable HIP acceleration for standard parallel algorithms ๐Ÿš€
  • -H โ€” show header includes and nesting depth ๐Ÿช†
  • -I- โ€” restrict all prior -I flags to double-quoted inclusion and remove the current directory from the include path ๐Ÿšง
  • -iapinotes-modules <directory> โ€” add directory to the API notes search path referenced by module name ๐Ÿ—‚๏ธ
  • -ibuiltininc โ€” enable builtin #include directories even when -nostdinc is used before or after -ibuiltininc. Using -nobuiltininc after the option disables it โ†ฉ๏ธ
  • -idirafter <value> โ€” add directory to the AFTER include search path โญ๏ธ
  • -iframeworkwithsysroot <directory> โ€” add directory to the SYSTEM framework search path; absolute paths are relative to -isysroot ๐ŸŽ
  • -iframework <value> โ€” add directory to the SYSTEM framework search path ๐ŸŽ
  • -imacros <file> โ€” include macros from file before parsing ๐Ÿช„
  • -include-pch <file> โ€” include a precompiled header file ๐Ÿ“ฆ
  • -include <file> โ€” include file before parsing ๐Ÿ“„
  • -iprefix <dir> โ€” set the -iwithprefix / -iwithprefixbefore prefix ๐Ÿท๏ธ
  • -iquote <directory> โ€” add directory to the QUOTE include search path โ
  • -isysroot <dir> โ€” set the system root directory (usually /) ๐ŸŒ
  • -isystem-after <directory> โ€” add directory to the end of the SYSTEM include search path โญ๏ธ
  • -isystem <directory> โ€” add directory to the SYSTEM include search path ๐Ÿ–ฅ๏ธ
  • -ivfsoverlay <value> โ€” overlay the virtual filesystem described by file over the real file system ๐Ÿชž
  • -iwithprefixbefore <dir> โ€” set directory to the include search path with prefix ๐Ÿท๏ธ
  • -iwithprefix <dir> โ€” set directory to the SYSTEM include search path with prefix ๐Ÿท๏ธ
  • -iwithsysroot <directory> โ€” drops directory into the SYSTEM include search path, bestie. And heads up: any absolute paths you give are relative to -isysroot ๐Ÿ’…
  • -I <dir> โ€” adds dir to the end of the list of include search paths. Not the front. The end. Respect the queue โœจ
  • --libomptarget-amdgcn-bc-path=<value> โ€” the path to the libomptarget-amdgcn bitcode library ๐ŸŽ€
  • --libomptarget-amdgpu-bc-path=<value> โ€” the path to the libomptarget-amdgcn bitcode library (yes, it says amdgcn again, that's literally what the page says, no I'm not fixing it, that's not my job ๐Ÿ™ˆ)
  • --libomptarget-nvptx-bc-path=<value> โ€” the path to the libomptarget-nvptx bitcode library ๐Ÿ’–
  • --libomptarget-spirv-bc-path=<value> โ€” the path to the libomptarget-spirv bitcode library ๐ŸŒธ
  • -L <dir> โ€” adds dir to the library search path, so the linker knows where to go looking ๐Ÿ‘‘
  • -mabi=quadword-atomics โ€” turns on the quadword atomics ABI on AIX (that's AIX PPC64 only, babes). Uses lqarx/stqcx. instructions ๐Ÿ”ฅ
  • -mabicalls โ€” enables SVR4-style position-independent code (Mips only) โœจ
  • -maix-shared-lib-tls-model-opt โ€” for a shared library loaded with the main program, this swaps local-dynamic access(es) over to initial-exec access(es), at the function level (AIX 64-bit only) ๐Ÿ’œ
  • -maix-small-local-dynamic-tls โ€” produces a faster access sequence for local-dynamic TLS variables where the offset from the TLS base is encoded as an immediate operand (AIX 64-bit only). This access sequence is not used for variables larger than 32KB, ok?? ๐Ÿ˜ญ
  • -maix-small-local-exec-tls โ€” same energy but for local-exec TLS variables: faster access sequence when the offset from the TLS base is encoded as an immediate operand (AIX 64-bit only). Also not used for variables larger than 32KB ๐Ÿซถ
  • -maix-struct-return โ€” returns all structs in memory (PPC32 only) ๐ŸŽ€
  • -malign-branch-boundary=<value> โ€” tells it the boundary's size, for aligning branches โœจ
  • -malign-branch=<value> โ€” says which types of branches to align ๐Ÿ‘‘
  • -malign-double โ€” aligns doubles to two words in structs (x86 only) ๐ŸŒˆ
  • -maltivec โ€” enables AltiVec vector initializer syntax ๐Ÿ’…
  • -mamdgpu-ieee โ€” sets the IEEE bit in the expected default floating point mode register. Floating point opcodes that support exception flag gathering quiet and propagate signaling NaN inputs per IEEE 754-2008. โš ๏ธ Heads up bestie: this option changes the ABI. (AMDGPU only)
  • -mamdgpu-precise-memory-op โ€” enables precise memory mode (AMDGPU only) ๐Ÿฆ‹
  • -mannotate-tablejump โ€” enables the annotate table jump instruction so it can be correlated with the jump table ๐Ÿ”ฅ
  • -mapx-features=<value> โ€” enables features of APX ๐ŸŒŸ
  • -mapx-inline-asm-use-gpr32 โ€” enables use of GPR32 in inline assembly for APX ๐Ÿ’œ
  • -march=<value> โ€” for a list of the available architectures for the target, use '-mcpu=help' ๐Ÿ’–
  • -marm64x<value> โ€” links as a hybrid ARM64X image โœจ
  • -mbackchain โ€” links stack frames through the backchain on System Z ๐ŸŽ€
  • -mbranch-protection=<value> โ€” enforces targets of indirect branches and function returns ๐Ÿ‘‘
  • -mbranches-within-32B-boundaries โ€” aligns selected branches (fused, jcc, jmp) within a 32-byte boundary ๐ŸŒธ
  • -mcabac โ€” enables CABAC instructions ๐Ÿ”ฅ
  • -mcf-branch-label-scheme=<value> โ€” picks the label scheme for branch control-flow architecture protection ๐Ÿซถ
  • -mcmse โ€” allow use of CMSE (Armv8-M Security Extensions) ๐Ÿ’…
  • -mcode-object-version=<value> โ€” specify the code object ABI version. Defaults to 5. (AMDGPU only) โญ
  • -mconstructor-aliases โ€” enables emitting complete constructors and destructors as aliases when possible ๐ŸŒˆ
  • -mcpu=<value> โ€” for a list of the available CPUs for the target, use '-mcpu=help' ๐Ÿ’–
  • -mcrbits โ€” controls the CR-bit tracking feature on PowerPC. `-mcrbits` (the enablement of CR-bit tracking support) is the default for POWER8 and above, and also for all other CPUs when optimization is applied (-O2 and above) ๐Ÿ‘‘
  • -mcrc โ€” allow use of CRC instructions (ARM/Mips only) โœจ
  • -mcumode โ€” specify CU wavefront execution mode (AMDGPU only) ๐Ÿฆ‹
  • -mdaz-ftz โ€” globally sets the denormals-are-zero (DAZ) and flush-to-zero (FTZ) bits in the floating-point control register on program startup ๐Ÿ’œ
  • -mdefault-visibility-export-mapping=<value> โ€” the mapping between default visibility and export ๐ŸŽ€
  • -mdiv32 โ€” use div.w[u] and mod.w[u] instructions with input not sign-extended ๐ŸŒธ
  • -mdouble=<n โ€” forces double to be <n> bits (yes the page literally renders it like that, <n and all, we keep it exact, no cap ๐Ÿ’€)
  • -MD โ€” writes a depfile containing user and system headers ๐Ÿ“
  • -meabi <value> โ€” sets the EABI type. The default depends on triple) โ€” that trailing paren is in the original, keeping it fr fr ๐Ÿ™ˆ
  • -membedded-data โ€” places constants in the .rodata section instead of the .sdata section, even if they meet the -G <size> threshold (MIPS) โœจ
  • -menable-experimental-extensions โ€” enables use of experimental RISC-V extensions. (Experimental! You've been warned, bestie ๐Ÿ˜ญ)
  • -mexec-model=<value> โ€” execution model (WebAssembly only) ๐Ÿฆ‹
  • -mexecute-only โ€” disallows generation of data access to code sections (ARM only) ๐Ÿ”ฅ
  • -mextern-sdata โ€” assumes that externally defined data is in the small data if it meets the -G <size> threshold (MIPS) ๐Ÿ’œ
  • -mfentry โ€” inserts calls to fentry at function entry (x86/SystemZ only) ๐Ÿ‘‘
  • -mfix-cmse-cve-2021-35465 โ€” works around the VLLDM erratum CVE-2021-35465 (ARM only) ๐Ÿ› ๏ธ
  • -mfix-cortex-a53-835769 โ€” workaround for Cortex-A53 erratum 835769 (AArch64 only) ๐Ÿ› ๏ธ
  • -mfix-cortex-a57-aes-1742098 โ€” works around Cortex-A57 Erratum 1742098 (ARM only) ๐Ÿ› ๏ธ
  • -mfix-cortex-a72-aes-1655431 โ€” works around Cortex-A72 Erratum 1655431 (ARM only) ๐Ÿ› ๏ธ
  • -mfix-gr712rc โ€” enables workarounds for GR712RC errata ๐Ÿ› ๏ธ
  • -mfix-ut700 โ€” enables workarounds for UT700 errata ๐Ÿ› ๏ธ
  • -mfp32 โ€” use 32-bit floating point registers (MIPS only) โœจ
  • -mfp64 โ€” use 64-bit floating point registers (MIPS only) โœจ
  • -mframe-chain=<value> โ€” selects the frame chain model used to emit frame records (Arm only) ๐Ÿ’…
  • -mfrecipe โ€” enables frecipe.{s/d} and frsqrte.{s/d} ๐Ÿ”ฅ
  • -mfunction-return=<value> โ€” replaces returns with jumps to `__x86_return_thunk` (x86 only, error otherwise) โš ๏ธ
  • -MF <file> โ€” writes depfile output from -MMD, -MD, -MM, or -M to <file> ๐Ÿ“
  • -mgeneral-regs-only โ€” generates code which only uses the general purpose registers (AArch64/x86 only) ๐Ÿ‘‘
  • -mglobal-merge โ€” enables merging of globals ๐ŸŒˆ
  • -mgpopt โ€” uses GP relative accesses for symbols known to be in a small data section (MIPS) โœจ
  • -mguard=<value> โ€” enable or disable Control Flow Guard checks and guard tables emission ๐Ÿ›ก๏ธ
  • -MG โ€” adds missing headers to the depfile ๐Ÿ“
  • -mharden-sls=<value> โ€” selects the straight-line speculation hardening scope (ARM/AArch64/X86 only). <arg> must be: all, none, retbr(ARM/AArch64), blr(ARM/AArch64), comdat(ARM/AArch64), nocomdat(ARM/AArch64), return(X86), indirect-jmp(X86) ๐Ÿ’…
  • -mhvx-ieee-fp โ€” enables Hexagon HVX IEEE floating-point โœจ
  • -mhvx-length=<value> โ€” sets Hexagon Vector Length ๐Ÿฆ‹
  • -mhvx-qfloat โ€” enables Hexagon HVX QFloat instructions ๐Ÿ”ฅ
  • -mhvx=<value> โ€” enables Hexagon Vector eXtensions ๐Ÿ’œ
  • -mhvx โ€” enables Hexagon Vector eXtensions (same thing, shorter form, we love a duo) ๐Ÿซถ
  • -miamcu โ€” use Intel MCU ABI ๐ŸŽ€
  • -mignore-xcoff-visibility โ€” doesn't emit the visibility attribute for asm in AIX OS, or gives all symbols 'unspecified' visibility in the XCOFF object file ๐Ÿ™ˆ
  • -mincremental-linker-compatible โ€” (integrated-as) emit an object file which can be used with an incremental linker โœจ
  • -mindirect-branch-cs-prefix โ€” adds the cs prefix to call and jmp to indirect thunk ๐Ÿ›ก๏ธ
  • -mindirect-jump=<value> โ€” change indirect jump instructions to inhibit speculation ๐Ÿ›ก๏ธ
  • -mios-version-min=<value> โ€” sets the iOS deployment target ๐Ÿ“
  • -MJ <value> โ€” writes a compilation database entry per input ๐Ÿ“
  • -mlam-bh โ€” enables amswap[_db].{b/h} and amadd[_db].{b/h} ๐Ÿ”ฅ
  • -mlamcas โ€” enables amcas[_db].{b/h/w/d} ๐Ÿ”ฅ
  • -mlasx โ€” enables Loongson Advanced SIMD Extension (LASX) โœจ
  • -mld-seq-sa โ€” does not generate load-load barrier instructions (dbar 0x700) ๐Ÿ’œ
  • -mlink-builtin-bitcode-postopt โ€” links builtin bitcodes after the optimization pipeline ๐Ÿ‘‘
  • -mllvm=<arg> โ€” alias for -mllvm ๐ŸŽ€
  • -mllvm <value> โ€” additional arguments to forward to LLVM's option processing ๐Ÿ’…
  • -mlocal-sdata โ€” extends the -G behaviour to object local data (MIPS) โœจ
  • -mlong-calls โ€” generates branches with extended addressability, usually via indirect jumps ๐ŸŒˆ
  • -mlong-double-128 โ€” forces long double to be 128 bits ๐Ÿ’–
  • -mlong-double-64 โ€” forces long double to be 64 bits ๐Ÿ’–
  • -mlong-double-80 โ€” forces long double to be 80 bits, padded to 128 bits for storage ๐Ÿ’–
  • -mlr-for-calls-only โ€” doesn't allocate the LR register for general purpose usage, only for calls (AArch64 only) ๐Ÿซถ
  • -mlsx โ€” enables Loongson SIMD Extension (LSX) โœจ
  • -mlvi-cfi โ€” enables only control-flow mitigations for Load Value Injection (LVI) ๐Ÿ›ก๏ธ
  • -mlvi-hardening โ€” enables all mitigations for Load Value Injection (LVI) ๐Ÿ›ก๏ธ
  • -mmacos-version-min=<value> โ€” sets the macOS deployment target ๐Ÿ“
  • -mmadd4 โ€” enables the generation of 4-operand madd.s, madd.d and related instructions ๐Ÿ”ฅ
  • -mmark-bti-property โ€” adds .note.gnu.property with BTI to assembly files (AArch64 only) ๐ŸŽ€
  • -MMD โ€” writes a depfile containing user headers ๐Ÿ“
  • -mmemops โ€” enables generation of memop instructions โœจ
  • -mmlir <value> โ€” additional arguments to forward to MLIR's option processing ๐Ÿ’œ
  • -mms-bitfields โ€” sets the default structure layout to be compatible with the Microsoft compiler standard ๐Ÿ‘‘
  • -mmsa โ€” enable MSA ASE (MIPS only) ๐ŸŒธ
  • -mmt โ€” enable MT ASE (MIPS only) ๐ŸŒธ
  • -MM โ€” like -MMD, but it also implies -E and writes to stdout by default ๐Ÿ“
  • -mno-abicalls โ€” disables SVR4-style position-independent code (Mips only) โœจ
  • -mno-amdgpu-precise-memory-op โ€” disables precise memory mode (AMDGPU only) ๐Ÿฆ‹
  • -mno-annotate-tablejump โ€” disables the annotate table jump instruction that correlates it with the jump table ๐Ÿ”ฅ
  • -mno-apx-features=<value> โ€” disables features of APX ๐ŸŒŸ
  • -mno-bti-at-return-twice โ€” do not add a BTI instruction after a setjmp or other return-twice construct (Arm/AArch64 only) ๐Ÿ›ก๏ธ
  • -mno-constructor-aliases โ€” disables emitting complete constructors and destructors as aliases when possible ๐ŸŒˆ
  • -mno-crc โ€” disallows use of CRC instructions (Mips only) โœจ
  • -mno-cumode โ€” specify WGP wavefront execution mode (AMDGPU only) ๐Ÿฆ‹
  • -mno-daz-ftz โ€” do not globally set the denormals-are-zero (DAZ) and flush-to-zero (FTZ) bits in the floating-point control register on program startup ๐Ÿ’œ
  • -mno-div32 โ€” bestie no โ€” do not use div.w[u] and mod.w[u] instructions with input that isn't sign-extended. ๐Ÿšซ๐Ÿ’…
  • -mno-embedded-data โ€” do not place constants in the .rodata section instead of the .sdata if they meet the -G <size> threshold (MIPS). fr fr. ๐Ÿ™…โ™€๏ธ
  • -mno-execute-only โ€” allow generation of data access to code sections (ARM only). lowkey spicy ๐Ÿ‘€
  • -mno-extern-sdata โ€” do not assume that externally defined data is in the small data if it meets the -G <size> threshold (MIPS). ๐Ÿค”
  • -mno-fix-cmse-cve-2021-35465 โ€” don't work around VLLDM erratum CVE-2021-35465 (ARM only). ๐Ÿ’€
  • -mno-fix-cortex-a53-835769 โ€” don't workaround Cortex-A53 erratum 835769 (AArch64 only). ๐Ÿ˜ญ
  • -mno-fix-cortex-a57-aes-1742098 โ€” don't work around Cortex-A57 Erratum 1742098 (ARM only). ๐Ÿ’€
  • -mno-fix-cortex-a72-aes-1655431 โ€” don't work around Cortex-A72 Erratum 1655431 (ARM only). ๐Ÿ’€
  • -mno-fmv โ€” disable function multiversioning. ๐Ÿ›‘
  • -mno-frecipe โ€” disable frecipe.{s/d} and frsqrte.{s/d}. ๐Ÿšซ
  • -mno-gather โ€” disable generation of gather instructions in auto-vectorization (x86 only). ๐ŸŒช๏ธ
  • -mno-global-merge โ€” disable merging of globals. ๐Ÿงฉ
  • -mno-gpopt โ€” do not use GP relative accesses for symbols known to be in a small data section (MIPS). ๐ŸŽฏ
  • -mno-hvx-ieee-fp โ€” disable Hexagon HVX IEEE floating-point. ๐Ÿงฎ
  • -mno-hvx-qfloat โ€” disable Hexagon HVX QFloat instructions. ๐Ÿ’…
  • -mno-hvx โ€” disable Hexagon Vector eXtensions. ๐Ÿ
  • -mno-implicit-float โ€” don't generate implicit floating point or vector instructions. ๐Ÿšซ
  • -mno-incremental-linker-compatible โ€” (integrated-as) emit an object file which cannot be used with an incremental linker. ๐Ÿ›‘
  • -mno-lam-bh โ€” disable amswap[_db].{b/h} and amadd[_db].{b/h}. ๐Ÿ’€
  • -mno-lamcas โ€” disable amcas[_db].{b/h/w/d}. ๐Ÿšซ
  • -mno-lasx โ€” disable Loongson Advanced SIMD Extension (LASX). ๐Ÿ‰
  • -mno-ld-seq-sa โ€” generate load-load barrier instructions (dbar 0x700). ๐Ÿšง
  • -mno-local-sdata โ€” do not extend the -G behaviour to object local data (MIPS). ๐Ÿง
  • -mno-long-calls โ€” restore the default behaviour of not generating long calls. ๐Ÿ”„
  • -mno-lsx โ€” disable Loongson SIMD Extension (LSX). ๐Ÿ‰
  • -mno-lvi-cfi โ€” disable control-flow mitigations for Load Value Injection (LVI). ๐Ÿ›ก๏ธ
  • -mno-lvi-hardening โ€” disable mitigations for Load Value Injection (LVI). ๐Ÿ›ก๏ธ
  • -mno-madd4 โ€” disable the generation of 4-operand madd.s, madd.d and related instructions. ๐Ÿงฎ
  • -mno-memops โ€” disable generation of memop instructions. ๐Ÿšซ
  • -mno-movt โ€” disallow use of movt/movw pairs (ARM only). ๐Ÿ™…
  • -mno-ms-bitfields โ€” do not set the default structure layout to be compatible with the Microsoft compiler standard. ๐ŸชŸ
  • -mno-msa โ€” disable MSA ASE (MIPS only). ๐Ÿšซ
  • -mno-mt โ€” disable MT ASE (MIPS only). ๐Ÿšซ
  • -mno-neg-immediates โ€” disallow converting instructions with negative immediates to their negation or inversion. ๐Ÿ”„
  • -mno-nvj โ€” disable generation of new-value jumps. ๐Ÿฆ˜
  • -mno-nvs โ€” disable generation of new-value stores. ๐Ÿ“ฆ
  • -mno-outline-atomics โ€” don't generate local calls to out-of-line atomic operations. ๐Ÿšซ
  • -mno-outline โ€” disable function outlining (AArch64 only). โœ‚๏ธ
  • -mno-packets โ€” disable generation of instruction packets. ๐Ÿ“ฆ
  • -mno-pic-data-is-text-relative โ€” don't assume data segments are relative to text segment. ๐Ÿง
  • -mno-regnames โ€” use only register numbers when writing assembly output. ๐Ÿ”ข
  • -mno-relax โ€” disable linker relaxation. ๐Ÿง˜โ™€๏ธ
  • -mno-restrict-it โ€” allow generation of complex IT blocks. ๐Ÿงฑ
  • -mno-save-restore โ€” disable using library calls for save and restore. ๐Ÿ’พ
  • -mno-scalar-strict-align โ€” allow scalar memory accesses to be unaligned (RISC-V only). ๐Ÿ“
  • -mno-scatter โ€” disable generation of scatter instructions in auto-vectorization (x86 only). ๐ŸŒช๏ธ
  • -mno-scq โ€” disable sc.q instruction. ๐Ÿšซ
  • -mno-seses โ€” disable speculative execution side effect suppression (SESES). ๐Ÿ›ก๏ธ
  • -mno-stack-arg-probe โ€” disable stack probes which are enabled by default. ๐Ÿ“š
  • -mno-strict-align โ€” allow memory accesses to be unaligned (AArch64/LoongArch/RISC-V only). ๐Ÿ“
  • -mno-tgsplit โ€” disable threadgroup split execution mode (AMDGPU only). ๐ŸŽฎ
  • -mno-tls-direct-seg-refs โ€” disable direct TLS access through segment registers. ๐Ÿ”’
  • -mno-tocdata=<value> โ€” specifies a list of variables to be exempt from the TOC data transformation. ๐Ÿ“
  • -mno-tocdata โ€” this is the default. TOC data transformation is not applied to any variables. Only variables specified explicitly in -mtocdata= will have the TOC data transformation. ๐Ÿ’…
  • -mno-unaligned-access โ€” force all memory accesses to be aligned (AArch32/MIPSr6 only). ๐Ÿ“
  • -mno-unaligned-symbols โ€” expect external char-aligned symbols to be without ABI alignment (SystemZ only). ๐Ÿ”
  • -mno-v8plus โ€” disable V8+ mode. ๐Ÿšซ
  • -mno-vector-strict-align โ€” allow vector memory accesses to be unaligned (RISC-V only). ๐Ÿ“
  • -mno-wavefrontsize64 โ€” specify wavefront size 32 mode (AMDGPU only). ๐ŸŒŠ
  • -mnocrc โ€” disallow use of CRC instructions (ARM only). ๐Ÿ”
  • -mnop-mcount โ€” generate mcount/__fentry__ calls as nops. To activate they need to be patched in. ๐Ÿฉน
  • -mnvj โ€” enable generation of new-value jumps. ๐Ÿฆ˜
  • -mnvs โ€” enable generation of new-value stores. ๐Ÿ“ฆ
  • -module-dependency-dir <value> โ€” directory to dump module dependencies to. ๐Ÿ“
  • -module-file-info โ€” provide information about a particular module file. โ„น๏ธ
  • -momit-leaf-frame-pointer โ€” omit frame pointer setup for leaf functions. ๐Ÿƒ
  • -moutline-atomics โ€” generate local calls to out-of-line atomic operations. โš›๏ธ
  • -moutline โ€” enable function outlining (AArch64 only). โœ‚๏ธ
  • -mpacked-stack โ€” use packed stack layout (SystemZ only). ๐Ÿ“ฆ
  • -mpackets โ€” enable generation of instruction packets. ๐Ÿ“ฆ
  • -mpad-max-prefix-size=<value> โ€” specify maximum number of prefixes to use for padding. ๐Ÿงท
  • -mpic-data-is-text-relative โ€” assume data segments are relative to text segment. ๐Ÿง
  • -mprefer-vector-width=<value> โ€” specifies preferred vector width for auto-vectorization. Defaults to 'none' which allows target specific decisions. ๐Ÿ“
  • -mprintf-kind=<value> โ€” specify the printf lowering scheme (AMDGPU only), allowed values are "hostcall" (printing happens during kernel execution, this scheme relies on hostcalls which require system to support pcie atomics) and "buffered" (printing happens after all kernel threads exit, this uses a printf buffer and does not rely on pcie atomic support). ๐Ÿ–จ๏ธ
  • -MP โ€” create phony target for each dependency (other than main file). ๐Ÿ‘ป
  • -mqdsp6-compat โ€” enable hexagon-qdsp6 backward compatibility. ๐Ÿฆ‹
  • -MQ <value> โ€” specify name of main file output to quote in depfile. ๐Ÿ“
  • -mrecip=<value> โ€” control use of approximate reciprocal and reciprocal square root instructions followed by <n> iterations of Newton-Raphson refinement. <value> = ( ['!'] ['vec-'] ('rcp'|'sqrt') [('h'|'s'|'d')] [':'<n>] ) | 'all' | 'default' | 'none'. ๐Ÿงฎ
  • -mrecip โ€” equivalent to '-mrecip=all'. ๐Ÿ”
  • -mrecord-mcount โ€” generate a __mcount_loc section entry for each __fentry__ call. ๐Ÿ“
  • -mregnames โ€” use full register names when writing assembly output. ๐Ÿ”ค
  • -mrelax-all โ€” (integrated-as) relax all machine instructions. ๐Ÿง˜
  • -mrelax โ€” enable linker relaxation. ๐Ÿง˜โ™€๏ธ
  • -mrestrict-it โ€” disallow generation of complex IT blocks. It is off by default. ๐Ÿšซ
  • -mrtd โ€” make StdCall calling convention the default. ๐Ÿ“ž
  • -mrvv-vector-bits=<value> โ€” specify the size in bits of an RVV vector register. ๐Ÿ“
  • -msave-reg-params โ€” save arguments passed by registers to ABI-defined stack positions. ๐Ÿ’พ
  • -msave-restore โ€” enable using library calls for save and restore. ๐Ÿ’พ
  • -mscalar-strict-align โ€” force all scalar memory accesses to be aligned (RISC-V only). ๐Ÿ“
  • -mscq โ€” enable sc.q instruction. โœ…
  • -mseses โ€” enable speculative execution side effect suppression (SESES). Includes LVI control flow integrity mitigations. ๐Ÿ›ก๏ธ
  • -msign-return-address=<value> โ€” select return address signing scope. โœ๏ธ
  • -msimd=<value> โ€” select the SIMD extension(s) to be enabled in LoongArch either 'none', 'lsx', 'lasx'. ๐ŸŽ›๏ธ
  • -mskip-rax-setup โ€” skip setting up RAX register when passing variable arguments (x86 only). ๐Ÿฆ˜
  • -msmall-data-limit=<value> โ€” put global and static data smaller than the limit into a special section. ๐Ÿ“ฆ
  • -msoft-float โ€” use software floating point. ๐Ÿงฎ
  • -msse2avx โ€” specify that the assembler should encode SSE instructions with VEX prefix. ๐Ÿ”ค
  • -mstack-alignment=<value> โ€” set the stack alignment. ๐Ÿ“
  • -mstack-arg-probe โ€” enable stack probes. ๐Ÿ“š
  • -mstack-probe-size=<value> โ€” set the stack probe size. ๐Ÿ“
  • -mstack-protector-guard-offset=<value> โ€” use the given offset for addressing the stack-protector guard. ๐Ÿ›ก๏ธ
  • -mstack-protector-guard-reg=<value> โ€” use the given reg for addressing the stack-protector guard. ๐Ÿ›ก๏ธ
  • -mstack-protector-guard-symbol=<value> โ€” use the given symbol for addressing the stack-protector guard. ๐Ÿ›ก๏ธ
  • -mstack-protector-guard=<value> โ€” use the given guard (global, tls) for addressing the stack-protector guard. ๐Ÿ›ก๏ธ
  • -mstackrealign โ€” force realign the stack at entry to every function. ๐Ÿ“
  • -mstrict-align โ€” force all memory accesses to be aligned (AArch64/LoongArch/RISC-V only). ๐Ÿ“
  • -msve-vector-bits=<value> โ€” specify the size in bits of an SVE vector register. Defaults to the vector length agnostic value of "scalable". (AArch64 only) ๐Ÿ“
  • -msvr4-struct-return โ€” return small structs in registers (PPC32 only). ๐Ÿ“ฆ
  • -mtargetos=<value> โ€” set the deployment target to be the specified OS and OS version. ๐ŸŽฏ
  • -mtgsplit โ€” enable threadgroup split execution mode (AMDGPU only). ๐ŸŽฎ
  • -mthread-model <value> โ€” the thread model to use. Defaults to 'posix'). ๐Ÿงต
  • -mtls-dialect=<value> โ€” which thread-local storage dialect to use for dynamic accesses of TLS variables. ๐Ÿ”’
  • -mtls-direct-seg-refs โ€” enable direct TLS access through segment registers (default). ๐Ÿ”“
  • -mtls-size=<value> โ€” specify bit size of immediate TLS offsets (AArch64 ELF only): 12 (for 4KB) | 24 (for 16MB, default) | 32 (for 4GB) | 48 (for 256TB, needs -mcmodel=large). ๐Ÿ“

okay continuing the option dump, we're deep in the sauce now, stay with me bestie ๐Ÿ’œ


  • -mtocdata=<value> โ€” names a whole list of variables that the TOC data transformation gets applied to ๐ŸŽ€
  • -mtocdata โ€” no list, no problem: every suitable variable gets the TOC data transformation โœจ
  • -mtp=<value> โ€” which thread pointer access method we're using. For AArch32: 'soft' does a function call, or 'tpidrurw', 'tpidruro' or 'tpidrprw' use the three CP15 registers, and 'cp15' is just an alias for 'tpidruro'. For AArch64: 'tpidr_el0', 'tpidr_el1', 'tpidr_el2', 'tpidr_el3' or 'tpidrro_el0' use the five system registers, and 'elN' is an alias for 'tpidr_elN' ๐Ÿงš
  • -mtune=<value> โ€” only supported on AArch64, PowerPC, RISC-V, SPARC, SystemZ, and X86, so if ur on something else, sorry babe ๐Ÿ’€
  • -MT <value> โ€” set the name of the main file output inside the depfile ๐Ÿ“
  • -multi-lib-config=<file> โ€” path to the YAML configuration file used for multilib selection
  • -munaligned-access โ€” allow memory accesses to be unaligned (AArch32/MIPSr6 only)
  • -munaligned-symbols โ€” expect external char-aligned symbols to have no ABI alignment (SystemZ only) ๐Ÿ™ˆ
  • -munsafe-fp-atomics โ€” enables generation of unsafe floating point atomic instructions. may generate more efficient code, but it may not respect rounding and denormal modes, and may give incorrect results for certain memory destinations. (AMDGPU only) โ€” the name literally says unsafe, so like, believe it ๐Ÿ˜ญ
  • -mv8plus โ€” turn on V8+ mode, letting you use 64-bit V9 instructions inside 32-bit code ๐Ÿ‘‘
  • -mvector-strict-align โ€” force all vector memory accesses to be aligned (RISC-V only)
  • -mvevpu โ€” emit VPU instructions for VE โœจ
  • -MV โ€” use NMake/Jom format for the depfile ๐Ÿ“
  • -mwavefrontsize64 โ€” specify wavefront size 64 mode (AMDGPU only)
  • -mxcoff-build-id=<0xHEXSTRING> โ€” on AIX, ask for a build-id string, "0xHEXSTRING", to be created in the string table of the loader section inside the linked binary ๐ŸŽ€
  • -mxcoff-roptr โ€” place constant objects with relocatable address values in the RO data section and add -bforceimprw to the linker flags (AIX only)
  • -mzos-hlq-clang=<ClangHLQ> โ€” high level qualifier for z/OS C++RT side deck datasets
  • -mzos-hlq-csslib=<CsslibHLQ> โ€” high level qualifier for the z/OS CSSLIB dataset
  • -mzos-hlq-le=<LeHLQ> โ€” high level qualifier for z/OS Language Environment datasets
  • -mzos-sys-include=<SysInclude> โ€” path to system headers on z/OS ๐ŸŒธ
  • -M โ€” like -MD, but it also implies -E and writes to stdout by default
  • --no-cuda-include-ptx=<value> โ€” don't include PTX for the following GPU architecture (e.g. sm_35) or 'all'. can be specified more than once ๐Ÿ”
  • --no-cuda-version-check โ€” don't error out if the detected version of the CUDA install is too low for the requested CUDA gpu architecture, we're being chill about it today ๐Ÿ˜Œ
  • --no-default-config โ€” disable loading default configuration files
  • --no-gpu-bundle-output โ€” do not bundle output files of HIP device compilation ๐Ÿงบ
  • -no-hip-rt โ€” do not link against HIP runtime libraries
  • --no-offload-arch=<value> โ€” remove a CUDA/HIP offloading device architecture (e.g. sm_35, gfx906) from the list of devices to compile for. 'all' resets the list back to its default value โญ
  • --no-offload-new-driver โ€” don't Use the new driver for offloading compilation (yes, capital U, that's what it says, iykyk ๐Ÿ’…)
  • --no-system-header-prefix=<prefix> โ€” treat all #include paths starting with <prefix> as not including a system header
  • --no-wasm-opt โ€” disable the wasm-opt optimizer ๐Ÿ™…
  • -nobuiltininc โ€” disable builtin #include directories only
  • -nogpuinc โ€” don't add include paths for CUDA/HIP and don't include the default CUDA/HIP wrapper headers
  • -nogpulib โ€” do not link the device library for CUDA/HIP device compilation
  • -nohipwrapperinc โ€” don't include the default HIP wrapper headers and include paths
  • -nolibsycl โ€” do not link the SYCL runtime library
  • -nostdinc++ โ€” disable standard #include directories for the C++ standard library ๐Ÿ“š
  • -nostdinc โ€” disable both standard system #include directories and builtin #include directories โ€” the full sweep, nothing left ๐Ÿ˜ค
  • -nostdlibinc โ€” disable standard system #include directories only
  • --nvptx-arch-tool=<value> โ€” the tool used for detecting the NVIDIA GPU arch in the system ๐Ÿ”
  • -ObjC++ โ€” treat source input files as Objective-C++ inputs
  • -ObjC โ€” treat source input files as Objective-C inputs
  • -object-file-name=<file> โ€” set the output <file> for debug infos
  • -Ofast<value> โ€” Deprecated; use '-O3 -ffast-math' for the same behavior, or '-O3' to enable only conforming optimizations. she's retired, let her rest ๐Ÿซถ
  • --offload-arch=<value> โ€” specify an offloading device architecture for CUDA, HIP, or OpenMP (e.g. sm_35). if 'native' is used, the compiler will detect locally installed architectures. for HIP offloading, the device architecture can be followed by target ID features delimited by a colon (e.g. gfx908:xnack+:sramecc-). can be specified more than once ๐Ÿ”ฅ
  • --offload-compress โ€” compress offload device binaries (HIP only) ๐Ÿ—œ๏ธ
  • --offload-device-only โ€” only compile for the offloading device
  • --offload-host-device โ€” compile for both the offloading host and device (this is the default)
  • --offload-host-only โ€” only compile for the offloading host
  • --offload-link โ€” use the new offloading linker to perform the link job ๐Ÿ”—
  • --offload-new-driver โ€” use the new driver for offloading compilation
  • --offload=<value> โ€” specify a comma-separated list of offloading target triples (CUDA and HIP only)
  • -o <file> โ€” write output to <file> ๐Ÿ’พ
  • -pedantic โ€” warn on language extensions. yes she will absolutely tell on you ๐Ÿ“ข
  • -pg โ€” enable mcount instrumentation
  • -pipe โ€” use pipes between commands, when possible ๐Ÿชˆ
  • --precompile โ€” only precompile the input
  • --pretty-sgf โ€” emit pretty printed symbol graphs โœจ
  • -print-diagnostic-options โ€” print all of Clang's warning options
  • -print-effective-triple โ€” print the effective target triple ๐ŸŽฏ
  • -print-enabled-extensions โ€” print the extensions enabled by the given target and -march/-mcpu options. (AArch64 and RISC-V only)
  • -print-file-name=<file> โ€” print the full library path of <file>
  • -print-ivar-layout โ€” enable Objective-C Ivar layout bitmap print trace ๐Ÿ‘€
  • -print-libgcc-file-name โ€” print the library path for the currently used compiler runtime library ("libgcc.a" or "libclang_rt.builtins.*.a")
  • -print-library-module-manifest-path โ€” print the path for the C++ Standard library module manifest
  • -print-multi-flags-experimental โ€” print the flags used for selecting multilibs (experimental) ๐Ÿงช
  • -print-prog-name=<name> โ€” print the full program path of <name>
  • -print-resource-dir โ€” print the resource directory pathname
  • -print-rocm-search-dirs โ€” print the paths used for finding a ROCm installation
  • -print-runtime-dir โ€” print the directory pathname containing Clang's runtime libraries
  • -print-search-dirs โ€” print the paths used for finding libraries and programs
  • -print-supported-cpus โ€” print supported cpu models for the given target (if the target isn't specified, it will print the supported cpus for the default target) ๐Ÿ‘‘
  • -print-supported-extensions โ€” print supported -march extensions (RISC-V, AArch64 and ARM only)
  • -print-target-triple โ€” print the normalized target triple
  • -print-targets โ€” print the registered targets ๐ŸŽ€
  • -pthread โ€” support POSIX threads in generated code ๐Ÿงต
  • --ptxas-path=<value> โ€” path to ptxas (used for compiling CUDA code)
  • -P โ€” disable linemarker output in -E mode
  • -p โ€” enable mcount instrumentation with prof
  • -Qn โ€” do not emit metadata containing compiler name and version ๐Ÿคซ
  • -Qunused-arguments โ€” don't emit a warning for unused driver arguments, live ur truth bestie
  • -Qy โ€” emit metadata containing compiler name and version ๐Ÿ“›
  • -regcall4 โ€” set __regcall4 as a default calling convention to respect __regcall ABI v.4
  • -relocatable-pch โ€” whether to build a relocatable precompiled header
  • -rewrite-legacy-objc โ€” rewrite Legacy Objective-C source to C++ ๐Ÿช„
  • -rewrite-objc โ€” rewrite Objective-C source to C++ ๐Ÿช„
  • --rocm-device-lib-path=<value> โ€” ROCm device library path. alternative to rocm-path.
  • --rocm-path=<value> โ€” ROCm installation path, used for finding and automatically linking required bitcode libraries.
  • -Rpass-analysis=<value> โ€” report transformation analysis from optimization passes whose name matches the given POSIX regular expression ๐Ÿ”Ž
  • -Rpass-missed=<value> โ€” report missed transformations by optimization passes whose name matches the given POSIX regular expression ๐Ÿ’€
  • -Rpass=<value> โ€” report transformations performed by optimization passes whose name matches the given POSIX regular expression ๐ŸŽ‰
  • -rtlib=<value> โ€” compiler runtime library to use
  • -R<remark> โ€” enable the specified remark ๐Ÿ’ฌ
  • -save-stats=<value> โ€” save llvm statistics.
  • -save-stats โ€” save llvm statistics.
  • -save-temps=<value> โ€” save intermediate compilation results. <arg> can be set to 'cwd' for current working directory, or 'obj' which will save temporary files in the same directory as the final output file ๐Ÿ“ฆ
  • -save-temps โ€” alias for --save-temps=cwd
  • -serialize-diagnostics <value> โ€” serialize compiler diagnostics to a file
  • -shared-libsan โ€” dynamically link the sanitizer runtime
  • --start-no-unused-arguments โ€” don't emit warnings about unused arguments for the following arguments (the chill zone starts here ๐Ÿ˜Œ)
  • -static-libsan โ€” statically link the sanitizer runtime (Not supported for ASan, TSan or UBSan on darwin)
  • -static-openmp โ€” use the static host OpenMP runtime while linking.
  • -std=<value> โ€” language standard to compile for ๐Ÿ“
  • -stdlib++-isystem <directory> โ€” use <directory> as the C++ standard library include path
  • -stdlib=<value> โ€” C++ standard library to use
  • -sycl-std=<value> โ€” SYCL language standard to compile for.
  • --symbol-graph-dir=<value> โ€” directory in which to emit symbol graphs ๐Ÿ“‚
  • --system-header-prefix=<prefix> โ€” treat all #include paths starting with <prefix> as including a system header
  • -S โ€” only run preprocess and compilation steps โœ‚๏ธ
  • --target=<value> โ€” generate code for the given target ๐ŸŽฏ
  • -time โ€” time individual commands โฑ๏ธ
  • -traditional-cpp โ€” enable some traditional CPP emulation ๐Ÿ•ฐ๏ธ
  • -trigraphs โ€” bestie it literally processes trigraph sequences for you โœจ
  • -T <script> โ€” names <script> as your linker script, iconic behaviour honestly ๐Ÿ’…
  • -undef โ€” undef all system defines, just yeets them all out ๐Ÿซถ
  • -unwindlib=<value> โ€” picks which unwind library to use, no cap ๐Ÿ”ฅ
  • -U <macro> โ€” undefines the macro <macro>, simple as that ๐ŸŽ€
  • --verify-debug-info โ€” verifies the binary representation of debug output, it's giving quality control ๐Ÿ’–
  • -verify-pch โ€” loads a pre-compiled header file and checks it's not stale (so it's not out here lying to you ๐Ÿ˜ญ)
  • --version โ€” prints version information, the classic ๐ŸŒธ
  • -vfsoverlay <value> โ€” overlays the virtual filesystem described by the file on top of the real file system ๐Ÿฆ‹. Plus, if the linker supports it, this overlay file gets passed along to the linker too โœจ
  • -v โ€” shows you the commands it's running and gives verbose output, aka main character transparency ๐Ÿ‘‘
  • -Wa,<arg> โ€” passes the comma separated arguments in <arg> straight to the assembler ๐Ÿ’œ
  • --warning-suppression-mappings=<value> โ€” a file containing diagnostic suppresion mappings ๐Ÿ“„. Go check the user manual for the file format, iykyk
  • --wasm-opt โ€” enables the wasm-opt optimizer (and yes it's the default, it's that girl) โญ
  • -Wl,<arg> โ€” passes the comma separated arguments in <arg> to the linker ๐ŸŒˆ
  • -working-directory <value> โ€” resolves file paths relative to the directory you specify, so tidy ๐Ÿงš
  • -Wp,<arg> โ€” passes the comma separated arguments in <arg> to the preprocessor ๐Ÿ’ซ
  • -W<warning> โ€” enables the specified warning, we love being told things ๐Ÿ“
  • -w โ€” suppresses all warnings. every single one. silence, gorgeous ๐Ÿ’€
  • -Xanalyzer <arg> โ€” passes <arg> to the static analyzer ๐Ÿ”
  • -Xarch_device <arg> โ€” passes <arg> to the CUDA/HIP device compilation ๐ŸŽ€
  • -Xarch_host <arg> โ€” passes <arg> to the CUDA/HIP host compilation ๐Ÿ’–
  • -Xassembler <arg> โ€” passes <arg> to the assembler โœจ
  • -Xclang=<arg> โ€” literally just an alias for -Xclang ๐Ÿ’…
  • -Xclang <arg> โ€” passes <arg> to clang -cc1 ๐Ÿซถ
  • -Xcuda-fatbinary <arg> โ€” passes <arg> to the fatbinary invocation ๐Ÿ”ฅ
  • -Xcuda-ptxas <arg> โ€” passes <arg> to the ptxas assembler โญ
  • -Xlinker <arg> โ€” passes <arg> to the linker ๐ŸŒˆ
  • -Xoffload-linker<triple> <arg> โ€” passes <arg> to the offload linkers, or to the ones identified by -<triple> ๐Ÿฆ‹
  • -Xopenmp-target=<triple> <arg> โ€” passes <arg> to the target offloading toolchain identified by <triple> ๐ŸŒธ
  • -Xopenmp-target <arg> โ€” passes <arg> to the target offloading toolchain ๐Ÿ‘‘
  • -Xpreprocessor <arg> โ€” passes <arg> to the preprocessor ๐Ÿ’œ
  • -Xsycl-target-backend=<triple> <arg> โ€” passes <arg> to the SYCL based backend identified by <triple> โœจ
  • -Xsycl-target-backend <arg> โ€” passes <arg> to the SYCL based target backend ๐Ÿงš
  • -Xsycl-target-frontend=<triple> <arg> โ€” passes <arg> to the SYCL based target frontend identified by <triple> ๐Ÿ’ซ
  • -Xsycl-target-frontend <arg> โ€” passes <arg> to the SYCL based target frontend ๐Ÿ“
  • -Xsycl-target-linker=<triple> <arg> โ€” passes <arg> to the SYCL based target linker identified by <triple> ๐ŸŽ€
  • -Xsycl-target-linker <arg> โ€” passes <arg> to the SYCL based target linker ๐Ÿ’–
  • -Xs <arg> โ€” passes <arg> to the offline compiler ๐ŸŒŸ
  • -Xs<arg> โ€” passes <arg> to the offline compiler, and adds the option specifier '-' onto the <arg> too, sneaky but slay ๐Ÿ’…
  • -x <language> โ€” treats every input file after this as having type <language>, from that point onward, periodt ๐Ÿซถ
  • -z <arg> โ€” passes -z <arg> through to the linker ๐Ÿ”—

๐ŸŒŸ dxc compatibility options ๐ŸŒŸ

ngl this little crew is here for the dxc girlies specifically:

  • --dxv-path=<value> โ€” the DXIL validator installation path ๐Ÿ“
  • -fspv-target-env=<value> โ€” specifies the target environment ๐ŸŒ
  • -hlsl-entry <value> โ€” the entry point name for hlsl โœจ

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

okay so if you want the full, complete, deluxe documentation for clang-21, it lives as a Texinfo manual ๐Ÿ“–. And if the info and clang-21 programs are properly installed at your site (fingers crossed bestie ๐Ÿคž), then this command

info clang-21

should hand you the entire manual on a silver platter ๐Ÿ’–๐Ÿ‘‘


and that's a wrap on the whole page, babe ๐Ÿ’…โœจ this little masterpiece is clang-21 6.2.0-0ubuntu3, dated August 2026, and filed under CLANG-21(1) ๐ŸŒˆ go compile something iconic ๐ŸŽ€๐Ÿ’œ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from