As advocated by @dulacc in his comment, __attribute__ ((optnone))
works on clang 9.0.0 on Mac’s High Sierra.
More Related Contents:
- How do I make an infinite empty loop that won’t be optimized away?
- Code printing extra memory garbage
- How to remove “noise” from GCC/clang assembly output?
- Why does clang produce inefficient asm with -O0 (for this simple floating point sum)?
- How can I indicate that the memory *pointed* to by an inline ASM argument may be used?
- C loop optimization help for final assignment (with compiler optimization disabled)
- Disable all optimization options in GCC
- C optimisation of string literals
- Is it possible to tell the branch predictor how likely it is to follow the branch?
- Where is PATH_MAX defined in Linux?
- How to verify if a void pointer (void *) is one of two data types?
- Is the compiler allowed to recycle freed pointer variables?
- How to make clang compile to llvm IR
- How to turn off gcc compiler optimization to enable buffer overflow
- Why can’t C compilers rearrange struct members to eliminate alignment padding? [duplicate]
- Preventing compiler optimizations while benchmarking
- Are floating point operations in C associative?
- Fused multiply add and default rounding modes
- Status of __STDC_IEC_559__ with modern C compilers
- Incompatible pointer types passing in _Generic macro
- How to optimize these loops (with compiler optimization disabled)?
- Equivalents to MSVC’s _countof in other compilers?
- Is free() zeroing out memory?
- Why both clang and gcc only give a warning when there is a space after backslash if C standard says that whitespace is forbidden?
- Compiler changes printf to puts
- Why is 0 moved to stack when using return value?
- Is there a document describing how Clang handles excess floating-point precision?
- Why is gcc allowed to speculatively load from a struct?
- clang 14.0.0 floating point optimizations
- What constitutes a “valid” C Identifier?