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
Parents
  • 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).
Reply
  • 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).
Children
No data