[C ++]将src从32位迁移到64位时出错 [英] [C++] Error when migrate src from 32bit to 64bit
问题描述
大家好,
将src从32位迁移到64位时,
When migrate src from 32bit to 64 bit,
有一种情况:
错误: 使用的标准扩展名:此架构不支持'__asm'关键字
Error : onstandard extension used: '__asm' keyword not supported on this architecture
inline int get()
{
  __asm
  {
      mov eax,esp
  }; b $ b}
inline int get()
{
__asm
{
mov eax, esp
};
}
我不知道esp和eax
I don't know esp and eax
希望大家帮忙,
全部谢谢!
推荐答案
简单地说,__asm功能可以将一些汇编代码放入C ++源代码中,在64位模式下不可用。
Simply put, the __asm feature where you can drop in some assembly code into the C++ source code, is not available in 64 bit mode.
你将不得不从32位代码中弄清楚汇编代码的意图是什么,并找到相应的做法。它在C ++代码中。
You are going to have to figure out from the 32 bit code, what the intention is of the assembly code and find a corresponding means of doing it in C++ code.
这篇关于[C ++]将src从32位迁移到64位时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!