scottc11 / ok-STM32F4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GCC Reference:

The __attribute((unused)) is a gcc attribute to indicate to the compiler that the argument args is unused, and it prevents warnings about it.

Preventing compiler optimazation for debugging

Use this __attribute__((optimize("O0"))) to disable optimizations for a function. ex.

void __attribute__((optimize("O0"))) myFunc()
{
    // this will not be optimized
}

About


Languages

Language:C 96.4%Language:Assembly 3.0%Language:C++ 0.6%Language:Makefile 0.0%