Re: [Dorset] gcc cross compiling to m68k

2010-09-08 Thread Ralph Corderoy
Hi Tim, Generated code looks OK Something I used to find gcc didn't cope too well with when targetting ARM was the C idiom `!!x' to map 0 onto 0, and everything else onto 1. IOW, `x ? 1 : 0'. For signed int nnsi( int x) { return !!x; } unsigned int nnui(unsigned int x) {

Re: [Dorset] gcc cross compiling to m68k

2010-09-08 Thread Ralph Corderoy
Hi Tim, 86 0030 4AAE 0008 tst.l 8(%fp) 87 0034 56C0 sne %d0 88 0036 4E5E unlk %fp 89 .cfi_offset 14, -8 90 0038 7100 mvs.b %d0,%d0 91 003a 4480 neg.l %d0 92 003c 4E75

Re: [Dorset] gcc cross compiling to m68k

2010-09-07 Thread Tim Allen
Hi Dan and Ralph On 06/09/10 22:03, Dan Dart wrote: initial questions, if anyone on the list has experience using gcc as a cross-compiler. Yep - I use buildroot a lot. What's multilib and how does it fit in with newlib (which I gather I need to build for a different target)? Multilib is a

Re: [Dorset] gcc cross compiling to m68k

2010-09-07 Thread Ralph Corderoy
Hi Tim, It's turning out to be a bit of project because of gcc/newlib interdependencies which means having to build a bootstrap gcc, then newlib, then finally gcc again with newlib. I'm surprised an x86-host m68k-target gcc needs to be built with an m68k newlib to hand? Cheers, Ralph. --

Re: [Dorset] gcc cross compiling to m68k

2010-09-07 Thread Ralph Corderoy
Hi Dan, I'm surprised newlib is in use here at all. Did you choose it, and if so why? I'm not a newlib buff so I won't know about how it's awesome quite yet I'm afraid. If all else fails, check out buildroot as it can probably make you a toolchain, plus a load of userspace stuff, based

Re: [Dorset] gcc cross compiling to m68k

2010-09-07 Thread Tim Allen
Hi Dan On 07/09/10 12:52, Dan Dart wrote: Hi, I'm surprised newlib is in use here at all. Did you choose it, and if so why? Yes, because at this stage I don't know any better. This is all totally new territory for me. I'm not a newlib buff so I won't know about how it's awesome quite

Re: [Dorset] gcc cross compiling to m68k

2010-09-07 Thread Tim Allen
On 07/09/10 13:15, Ralph Corderoy wrote: Hi Dan, I'm surprised newlib is in use here at all. Did you choose it, and if so why? I'm not a newlib buff so I won't know about how it's awesome quite yet I'm afraid. If all else fails, check out buildroot as it can probably make you a toolchain,

Re: [Dorset] gcc cross compiling to m68k

2010-09-06 Thread Dan Dart
initial questions, if anyone on the list has experience using gcc as a cross-compiler. Yep - I use buildroot a lot. What's multilib and how does it fit in with newlib (which I gather I need to build for a different target)? Multilib is a feature of gcc that lets you compile for multiple

Re: [Dorset] gcc cross compiling to m68k

2010-09-06 Thread Ralph Corderoy
Hi Tim, I'm trying to get started on evaluating gcc for generating m68k code for embedded targets. I'm using Debian 5.0 but can pull in more recent gcc source if required. I've spent a few hours Googlin' around and have some initial questions, if anyone on the list has experience using gcc