分享方式:


編譯器警告 (層級 4) C4740

in or out of inline asm code suppress global optimization

當區塊有跳入或跳出 asm 區塊時,會停用該函式的全域優化。

下列範例會產生 C4740:

// C4740.cpp
// compile with: /O2 /W4
// processor: x86
int main() {
   __asm jmp tester
   tester:;
}