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 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 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.

Create an account

Register a new account

1. 1
2. 2
frob
15
3. 3
4. 4
5. 5
Rutin
12

• 12
• 12
• 58
• 14
• 15
• Forum Statistics

• Total Topics
632115
• Total Posts
3004199

×

Important Information

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!