Pragmas (The C Preprocessor)
gcc.gnu.org · 660 words · saved by 1 readers
Pragmas (The C Preprocessor)
The ‘#pragma’ directive is the method specified by the C standard for providing additional information to the compiler, beyond what is conveyed in the language itself. The forms of this directive (commonly known as pragmas) specified by C standard are prefixed with STDC. A C compiler is free to attach any meaning it likes to other pragmas. Most GNU-defined, supported pragmas have been given a GCC prefix. C99 introduced the _Pragma operator. This feature addresses a major problem with ‘#pragma’: being a directive, it cannot be produced as the result of macro expansion. _Pragma is an…
related reading
- Modern Cinria.hal.science
- The LLVM Compiler Infrastructure Projectllvm.org
- Lab 1: C Programming and Makefiles - HackMDcs.brown.edu
- Home ⚡ Zig Programming Languageziglang.org
- Getting silly with C, part -5^-7 - lcamtuf’s thinglcamtuf.substack.com
- Weekend projects: getting silly with Clcamtuf.substack.com
- The Lost Art of Structure Packingcatb.org
- Compilers - What Every Programmer Should Know About Compiler Optimizations | Microsoft Learnlearn.microsoft.com
- p2899r0.pdfopen-std.org
- CS106B C++ Fundamentalsweb.stanford.edu
- Defer available in gcc and clang – Jens Gustedt's Bloggustedt.wordpress.com
- ISO/IEC JTC1/SC22/WG21 - Papers 2026open-std.org