1
0
至少在我上次尝试它时,您无法在VC++的内联程序集块内创建标签。但是,使用C样式标签是可行的:
我已经有一段时间没有用vc++编写任何内联程序集了,所以我不能保证它能正常工作,但我想这是一个很公平的机会。 |
2
0
I've been without computer access, so hopefully you've resolved this already. I think that the problem is that using "\" to end the line actually tells the C preprocessor to merge the next line with this line. See comment 3 on this page 和线路拼接 here . 这对于大多数C语句都可以,但对于汇编来说更为困难,因为新行是它如何删除语句的。
I can think of two approaches to a solution. The first is to find something like C's ";" which can be used as a statment separator in assembly, I don't know if such a thing exists. The second approach is to wrap everything in separate
注意:我将标签放在asm语句之外,因为:
|
3
0
只是一个疯狂的猜测:宏将把所有文本扩展到一行,以
An indication for that hypothesis is that the error occurs on your second "line". The first is ok, but the second will be merged to the first, so this is the first chance for the compiler to get confused. Had the error been somewhere later, this wouldn't be it probably. |
4
0
通过将函数体封闭在另一个范围中来修复它。 |
rookie · 检查函数模板的所有参数包参数是否属于int 1 年前 |
ivaigult · -W转换和隐式字符串到布尔类型转换 1 年前 |
rainer · 后台插入程序的初始化 1 年前 |
Community wiki · 以理智、安全和高效的方式复制文件 1 年前 |
Shefali Kanaujia · 对C中向量的向量进行排序++ 1 年前 |
Ma Joonyoung · 粗粒度和细粒度链表的时间比较 1 年前 |