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 ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user