-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 19.12.2013 22:33, schrieb Masur Jonathan: > Hello guys, 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 ? > > Or perhaps gcc doesn't target the same kind of AVR processor as > those I used to code for in assembly ?
AVR might be 8-bit, but it is a RISC architecture with a rather orthogonal instruction set and few architectural quirks. That means many approaches that work well with generic processors work well with the AVR, such a standard Chaitin style graph coloring register allocators. Philipp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlKzcUMACgkQbtUV+xsoLpovWACfXvj9sQ+N/3J7TrIjirEmflle wcEAniIuCp37lEQS41U9JpmxX3A3/Q6d =3N8e -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ 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