|
From: Ø. H. <oyv...@zy...> - 2008-09-16 19:53:08
|
http://www.zylin.com/gccbinary.html now has links to Windows hosted arm-elf, mips-elf and powerpc-eabi. I believe powerpc-elf should be retired, but I'm awaiting feedback on whether that toolchain makes any sense. Warning!!!!! these are stored as tar.bz2 files which evidently e.g. 7Zip does not propery decompress(problems with symlink?). When this happens you get weird error messages CreateProcess failing. They were properly decompressed using Cygwin tar. Perhaps Windows toolchains would be better uploaded as .zip files? I uploaded http://www.zylin.com/gcc/binaries/windows/arm-elf.zip as a test... The arm-elf in particular should cover *all* ARM CPU types, including Cortex, XScale, Thumb, etc. It's 100mByte though :-) GDB is in there as well. Building the damn thing was a challenge, now these toolchains need some *minimal* testing before they can be recommended any help with that is greatly appreciated. The arm-elf toolchain is in many ways the ultimate multilib test... If you need big endian, no float, thumb2 code or any other such weird combination, then the arm-elf.tar.bz2 should do it... :-) Feedback welcome! Example: C:\temp>type test.c #include <stdio.h> int main(int argc, char **argv) { printf("Hello world\n"); } C:\temp>arm-elf-gcc test.c C:\temp>arm-elf-gdb a.out GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i586-mingw32msvc --target=arm-elf"... (gdb) target sim Connected to the simulator. (gdb) load Loading section .init, size 0x20 vma 0x8000 Loading section .text, size 0x3594 vma 0x8020 Loading section .fini, size 0x1c vma 0xb5b4 Loading section .rodata, size 0x1c vma 0xb5d0 Loading section .eh_frame, size 0x4 vma 0xb5ec Loading section .ctors, size 0x8 vma 0x135f0 Loading section .dtors, size 0x8 vma 0x135f8 Loading section .jcr, size 0x4 vma 0x13600 Loading section .data, size 0x930 vma 0x13604 Start address 0x810c Transfer rate: 129440 bits in <1 sec. (gdb) stepi The program is not being run. (gdb) run Starting program: C:\temp/a.out Hello world Program exited normally. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer |