我總是想知道c和彙編聲明(以及其他地方)中的下劃線字符的功能。 什麼含義的 '_' 像使用下劃線字符
MSVCRT!_output:
77c3f0f3 55 push ebp
77c3f0f4 8bec mov ebp,esp
77c3f0f6 81ec50020000 sub esp,0x250
77c3f0fc 33c0 xor eax,eax
77c3f0fe 8945d8 mov [ebp-0x28],eax
77c3f101 8945f0 mov [ebp-0x10],eax
77c3f104 8945ec mov [ebp-0x14],eax
77c3f107 8b450c mov eax,[ebp+0xc]
或
#ifdef __unix__ /* __unix__ is usually defined by compilers targeting Unix systems */
# include <unistd.h>
#elif defined _WIN32 /* _Win32 is usually defined by compilers targeting 32 or 64 bit Windows systems */
# include <windows.h>
#endif
或
#if !(defined __LP64__ || defined __LLP64__) || defined _WIN32 && !defined _WIN64
// we are compiling for a 32-bit system
#else
// we are compiling for a 64-bit system
#endif
在C預處理
聲明? (這只是我拿起對飛例子=
爲什麼以及何時是使用單或雙下劃線? 非常感謝您的幫助! N.組裝
[爲什麼C編譯器預先強調外部名稱下劃線?](http://stackoverflow.com/questions/2627511/why-do-c-compilers-prepend-underscores-to-external-names) –
是啊,它看起來像,我會檢查出來!感謝您的建議! – Neurophobos