Tag Archives: __declspec(naked)

Traditionally, the compiler is responsible for creating the prolog and epilog of a function. However, custom prolog and epilog code can be written if a function has been declared with the naked attribute. The snippet below demonstrates a naked function with custom prolog can i take 2 unisom pills. and epilog code. __declspec(naked) void foo(){ [...]