Author Topic: Support for gcc cross-compilers ?  (Read 3954 times)

claudio

  • Guest
Support for gcc cross-compilers ?
« on: April 06, 2005, 02:39:27 am »
Hi all,

I am testing Code::Blocks for developing embedded systems.
Instead of using the standard gcc toolchain,  I use the arm-elf-gcc toolchain.
The compiler is called arm-elf-gcc, gdb is called arm-elf-gdb and so on.
The compiler is the same gcc, but generates ARM code instead of x86 code.
I didn't found how to change the compiler name and path in the project build
options inside Code::Block.
Is that possible or it is necessary to change the compiler plug-in ?

Regards,
Claudio

Anonymous

  • Guest
Support for gcc cross-compilers ?
« Reply #1 on: April 06, 2005, 08:57:58 am »
You didn't look good.
Settings->Configure Plugins->Compiler
Add you cross-toolchain and set on "Programs" tab filenames of each tool, after that choose that compiler in you project
That's all.

WBR, Profic

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Support for gcc cross-compilers ?
« Reply #2 on: April 06, 2005, 09:19:48 am »
Profic is right.
Hopefully it should work. I 've never used a cross-compiler myself, but I don't see why it wouldn't work. It IS a compiler after all ;)

Yiannis.
Be patient!
This bug will be fixed soon...

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Support for gcc cross-compilers ?
« Reply #3 on: April 06, 2005, 09:40:40 pm »
Speaking about cross-compiling, is it possible to use GCC to compile Linux ELF binaries *from windows*?

Just a thought.  :roll: