Linux AT&T 汇编错误:Error: invalid instruction suffix for `push'
2013-10-16 21:22
609 查看
在 Linux 使用 AT&T 语法写汇编程序时
程序中有一条命令为:pushl %eax
使用 as 编译时出现错误:Error: invalid instruction suffix for `push'
原因是 64 位系统和 32 位系统的差别引起的
解决方法为:
在代码开头添加 .code32 即可
程序中有一条命令为:pushl %eax
使用 as 编译时出现错误:Error: invalid instruction suffix for `push'
原因是 64 位系统和 32 位系统的差别引起的
解决方法为:
在代码开头添加 .code32 即可
相关文章推荐
- 随笔二十八:invalid instruction suffix for push'
- 错误:SQL Error: 1406, SQLState: 22001____Data truncation: Data too long for column 'add_user' at row 1
- 错误分析 error: invalid suffix "-ui" on integer constant
- linux启动错误 Invalid module for…
- Oracle 10g "RemoteOperationException: ERROR: Wrong password for user"错误 解决方案
- ERROR 1366 (HY000): Incorrect string value: '\xC6\xF4\xD3\xC3' for column 'name' at row 1
- 【Python】ValueError: invalid literal for int() with base 10的错误
- mysql的Invalid default value for 'timestamp'"错误解决
- Linux下AT&T汇编语法格式简介1
- 处理编译错误"0" is an invalid value for the "DebugInformation" parameter of the "DCC" task.
- error: invalid storage class for…
- mysql报ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password)错误或者远程用户不能登录
- 错误:clang: error: invalid deployment target for -stdlib
- linux网络设置和虚拟机克隆转移之后Error:No suitable device found:no device found for connection 'System eth0'问题解决
- 编译基于arm平台的内核,出现error: invalid option `abi=aapcs-linux'
- [已解决]在VMware-server for linux 下装centos错误:an error has occurred. - no valid devices were found on which to create new file system
- 【Linux】psql: FATAL: Ident authentication failed for user "username" Error and Solution
- 转几篇关于linux下AT&T汇编的帖子
- Python脚本语法错误:SyntaxError:(unicode error) 'utf8' codec can't decode byte 0xc0 in position 0: invalids
- 解决 Linux下oracle导入(imp)导出(exp)出现"failed to open ...for reader/wirte" 错误