[Mono-dev] A inline asm on aix

Zhanxing Ding zding at rocketsoftware.com
Wed Jul 13 03:07:46 UTC 2016

Hi All,

I am porting mono, does anyone know how to write the inline asm on aix to replace the following inline asm.

#define MONO_THREAD_VAR_OFFSET(var,offset) \
                __asm (                "lis          %0," #var "@tprel at ha\n" \
                                "addi     %0,%0, " #var "@tprel at l\n" \
                : "=r" (offset))

In mono-compiler.h

Thank you!

Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? +1 877.328.2932 ? +1 781.577.4321
Unsubscribe From Commercial Email - unsubscribe at rocketsoftware.com
Manage Your Subscription Preferences - http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy

This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20160713/8933f23f/attachment-0001.html>

More information about the Mono-devel-list mailing list