This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can DS5 compile Linux kernel module?

Note: This was originally posted on 4th December 2012 at http://forums.arm.com

Hi,
I have a newbie question re using ARM DS5.
Is DS5 compiler capable of compiling Linux kernel module? or it's limited to user space applications only?


Thanks,
AAli
  • Note: This was originally posted on 7th December 2012 at http://forums.arm.com

    DS-5 comes with a Linaro gcc which can be used to build kernel modules and even the kernel on a Linux host.

    Since armcc and gcc can be set to use the same ABI it's feasible to build some files with armcc and link the object files together with gcc-built object files.

    But armcc does not do GNU inline asm nor GNU asm syntax and cannot be used to build the kernel (and I suspect it won't entirely build most kernel modules).
  • Note: This was originally posted on 18th December 2012 at http://forums.arm.com

    Culd ARMCC in DS-5 pro be used to compile the native code of Android NDK? If could, then how to do?
    We try to use ARMCC to compile NEON intrincis in the native code of Android NDK, but found none guideline or articles. any sugessions? thanks a lot...
  • Note: This was originally posted on 18th December 2012 at http://forums.arm.com

    [It would be better to start a thread since your question is about a different topic.  But I'll answer it here anyway.]

    Unfortunately, building general native Android code with armcc is not supported* so there aren't any instructions in the documentation, but if you have a standalone object file built with armcc you can link it with other native code. gcc can also compile NEON intrincics.

    • One reason is that the Android C library, Bionic, does not supply all of the functions that the AEABI requires.
  • Note: This was originally posted on 19th December 2012 at http://forums.arm.com

    Thanks for your kindly reply!

    quote name='scott' timestamp='1355829081' post='40270']
    [It would be better to start a thread since your question is about a different topic.  But I'll answer it here anyway.]

    Unfortunately, building general native Android code with armcc is not supported* so there aren't any instructions in the documentation, but if you have a standalone object file built with armcc you can link it with other native code. gcc can also compile NEON intrincics.

    • One reason is that the Android C library, Bionic, does not supply all of the functions that the AEABI requires.
      [/quote]