Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
MIPS — Gideros Forum

MIPS

SinisterSoftSinisterSoft Maintainer
edited January 2015 in General questions
How easy would it be to add MIPS output for Android (in addition to Arm and x86 libs) ?

I'm only asking because this kind of gadget looks pretty useful and it also opens up more cheap tablets.

http://blog.imgtec.com/powervr/mips-creator-ci20-development-board-now-available
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
https://deluxepixel.com

Comments

  • As far as I remember, not so easy, due to different endianness of byte interpreted.
  • Arm is bi-endian too - most OS just fall back to little-endian when there is a choice.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • "Yes for all ARM/X86/MIPS devices I know of, at least NDK toolchain is
    configured to little-endian only, although it's a good practice to check
    endianess at runtime (or assert the fact) so your C/C++ code is more
    portable."
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • " I.4. 'mips'

    This is the name of an ABI for MIPS-based CPUs that support *at* *least* the MIPS32r1 instruction set. The ABI includes the following features:

    - MIPS32 revision 1 ISA
    - Little-Endian
    - O32
    - Hard-Float
    - no DSP application specific extensions"
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Just including little endian should do fine and add a few hundred more compatible devices.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • If it gets added then I'll buy one of the boards and check out compatibility.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • @ar2rsawseen - is it simply a matter of adding "mips" to the object types?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    edited January 2015
    Basically yes, additionally to "armeabi armeabi-v7a x86" you would also need to add mips to all these files:

    https://github.com/gideros/gideros/search?utf8=✓&q=armeabi+armeabi-v7a+x86

    Build android libs using scripts inside scripts directory
    bash buildandroidlibs.sh
    bash buildandroidso.sh
    bash buildandroidplugins.sh
    or for windows correspondingly bat files

    and try it out on the mips tablet :)

  • SinisterSoftSinisterSoft Maintainer
    edited January 2015
    If you can be persuaded to add it to the next build then I'll get hold of a MIPS device to test if you like? ;)

    It can't hurt as it only increased the number of devices whilst the build size will only go up slightly.

    http://www.androidauthority.com/64-bit-mips-i6400-518130/
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • @ar2rsawseen I saw this:

    APP_ABI := all

    This includes all of them ?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Maybe, :)

    But seriously I think might be best to include them all and have the user just remove the folders containing those they don't want directly?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
Sign In or Register to comment.