다음을 통해 공유


naked

Microsoft Specific —>

**__declspec( naked )**declarator

For functions declared with the naked attribute, the compiler generates code without prolog and epilog code. You can use this feature to write your own prolog/epilog code using inline assembler code. Naked functions are particularly useful in writing virtual device drivers.

Because the naked attribute is relevant only to the definition of a function and is not a type modifier, naked functions use the syntax.

For related information, see __declspecArgument Passing and Naming ConventionsNaked Function Calls.

Example

This code defines a function with the naked attribute:

// Example of the naked attribute
__declspec( naked ) int func( formal_parameters )
{
    // Function body
}

END Microsoft Specific