gcc ON arm/android

Tim picture Tim · Jun 17, 2011 · Viewed 18.3k times · Source

I just got a EEE pad transformer. Like any hardware I own I'd like to have a C compiler on it. I know I can cross compile, but I'd like to do development ON the device itself. I've searched google and all I can seem to find are pages on how to build an arm toolchain for x86/64 Linux. Thoughts?

Answer

Andrew Edgecombe picture Andrew Edgecombe · Jun 17, 2011

The process of building gcc (et al.) to run on your target should be similar to building a cross-compiler, excepting that you will:

  • need to have an ARM cross compiler that runs on your, for example, x86 machine. So the results of your googleing are still useful.
  • use the --host option to specify your ARM platform when running configure for all of the parts of your toolchain.