Re: [avr-gcc-list] Why is gcc promoting on an unsigned char?
Robert Baruch <[email protected]> Tue, 23 Dec 2003 14:06:25 -0500
| Newsgroups | gmane.comp.hardware.avr.general |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 J.C. Wren wrote: | It would still be nice if the register tracking was smart enough to realize | that the results are never being used on the high byte, and optimized those | out, though. Speaking as someone who fell into this trap as well... :) One could, I suppose, hack the avr md (machine description) file to recognize this case and perform a special translation to do the Right Thing. Then recompile gcc and it should work. The way to do it is explained in the GCC manual, but it's quite difficult to go through. What we need is a "Baby's First Book of GCC Machine Descriptions" or something :) - --Rob -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/6JIx3n80I35hhEsRArPeAJ4/Y7W9mBnwpob66pmART0wVNUz+QCeMzSv 3C89T/JjwcjxQ7RZ1V0rrFo= =5f0O -----END PGP SIGNATURE-----