scottc11 / ok-bender

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git submodule update --init --recursive

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
}

DEV TOOLS:

About


Languages

Language:C++ 91.7%Language:C 6.1%Language:Makefile 2.2%