【complier/asm】impossible constraint in 'asm' error

DATE: 2018.11.21


1、参考

https://stackoverflow.com/questions/29880695/compiling-error-impossible-constraint-in-asm?answertab=active#tab-top
https://stackoverflow.com/questions/30918170/impossible-constraint-in-asm-error
https://blog.csdn.net/Q1302182594/article/details/50794409
https://blog.csdn.net/u012509728/article/details/50404424

2、问题描述

今天在进行Android平台的x86和x86_64编译时,对于x86内联汇编代码进行编译时,报出如下错误:

impossible constraint in 'asm' error;
#define asm __asm__
3、解决方案

原因还未找到。
初步分析: Android ndk采用的汇编器为yasm,已经确认yasm支持Intel格式和GNU AS(AT&T)格式的纯汇编编译,但是可能并不支持AT&T格式的x86 Inline汇编,这个问题有待进一步确认

问题确认:

待补充


THE END!

原文地址:https://www.cnblogs.com/SoaringLee/p/10532255.html