我怎样才能从堆栈写入字符串(例如“Hello”)到标准输出?没有,数据段,也就是说。 void main() {
__asm__(
"movl $0x4, %eax \n\t"
"movl $0x1, %ebx \n\t"
// put "Hello" on the stack and load its address into %ecx
编译错误,我不明白为什么这个代码 #include <iostream>
using namespace std;
int main(){
int result=0;
_asm{
mov eax,3;
MUL eax,3;
mov result,eax;
}
cout<<result<<endl;
ret