Re: c inline assembly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ratheesh kannoth <ratheesh.ksz@xxxxxxxxx> writes:

> This function is inline .  what all registers needs to pushed and
> poped in the inline assembly so that the functions wont
> disturb the registers in  the function ( in which it is C inlined  ).

Your asm statement should list the registers that it clobbers.

One i386 you normally can not clobber %ebp.  When compiling with
-fpic/-fPIC you normally can not clobber %ebx.

Ian
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux