Sign in to follow this  
Miss

ARM questions

Recommended Posts

So, I have a few questions about the ARM support in Angelscript.

1. Can I use as_callfunc_arm_gcc.S with clang, or is this specifically for gcc?

2. My compiler is complaining about casting a 64 bit void* to asDWORD in as_callfunc_arm.cpp, on lines like these, where secondObject is a void*. Can I ignore this as just a warning instead, or is that unsafe?

paramBuffer[dpos++] = (asDWORD)secondObject;

Thanks!

Share this post


Link to post
Share on other sites

gcc and clang is for the most part compatible. While I haven't tried it, odds are that as_callfunc_arm_gcc.S will work with clang too.

From your second question I gather that you're compiling for 64bit ARM. Unfortunately AngelScript doesn't yet have support for native calling conventions on 64bit ARM platforms, only 32bit. 

You'll have to use the generic calling convention on 64bit ARM platforms for now. The auto wrapper add-on will allow to skip writing lots of wrappers manually. 

 

Share this post


Link to post
Share on other sites

Thanks for the help. I've switched to using 32 bit for now, especially since the platform I'm building for doesn't necessarily need a 64 bit build.

The assembly file does compile and link on clang 32 bit, but I have yet to run it to see if it actually works.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this