[uClibc] error: impossible constraint in `asm'

Ramana Radhakrishnan ramana.radhakrishnan at codito.com
Wed Oct 6 08:40:23 UTC 2004


Shu-Liang Lee wrote:
> Hello sir...
>  
> Please help me to figure out the problem? what do I do?
> Emergency...thank you.
>  
> [root at ShuLiang linux]# armeb-linux-uclibc-gcc testcase1.c
> testcase1.c: In function `testcase':
> testcase1.c:4: error: impossible constraint in `asm'
> [root at ShuLiang linux]#
> [testcase.c]
> void* testcase( void ) {
>   void *r;
>  
>   __asm__("test %%eax, %%eax" : "=eax"(r));
>  
>   return r;
> }

Hello ? An arm-linux-uclibc toolchain to compile what apparently is an 
intel assembly statement ? It might be a good idea for you to read 
Brennans guide to inline assembly or the gcc info pages about Extended 
Inline Assembly .


cheers
Ramana

---
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)



More information about the uClibc mailing list