From: Dave M. <mc...@ne...> - 2013-12-19 22:12:27
|
On 12/19/2013 04:33 PM, Masur Jonathan wrote: > This might be out of topic, but while this was mentionned, I've asked me > this question a few times so I hope somebody has an answer. > > How comes AVR can be targetted by gcc at all ? AVR might be RISC, true, > but it is a 8-bit architecture, and the standard gcc compiler is > optimized for at least 16-bit CPUS right, because SDCC is separate from > GCC for a reason, right ? Well, GCC supports AVR because people wrote AVR support into GCC. ;) AVR is a bit more "compiler friendly" than, say, the Z80. > Or perhaps gcc doesn't target the same kind of AVR processor as those I > used to code for in assembly ? AVR is AVR, architecturally speaking. > As for the MSP430, I know gcc supports it but I have no idea how good it > is. I have used the IAR compiler when I had to target those. Well, GCC "supports MSP430" meaning TI distributes a hacked-up GCC that targets it, yes. That support has not yet (the last time I checked) been merged into the official sources, which means I'll have one different, weirdly-configured GCC installation alongside my half-dozen nice consistent standard ones. No thanks. -Dave -- Dave McGuire, AK4HZ New Kensington, PA |