预处理器算术是否应该匹配汇编目标的架构?
假设我有此预处理检查员检查:
#if(-6 & 5)
#error "No 2's complement signed int"
#endif
如果我从a 机器朝着 ans'nore'noreferrer“> onse's Replectement 机器?编译器会使用目标机器的算术或编译机的算术吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
C 2018 6.10.1 4说,用于评估
#if
和#elif
指令中的表达式:这些类型当然是在程序执行过程中使用的,因此它们的行为是执行环境的行为。
C 2018 6.10.1 4 says, for evaluation of expressions in
#if
and#elif
directives:These types are of course used during program execution, so their behaviors are those of the execution environment.