【发布时间】:2014-03-06 23:19:24
【问题描述】:
我一直想知道 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.
【问题讨论】:
-
是的,看起来,我去看看!感谢您的建议!
标签: assembly character preprocessor