avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Why is gcc promoting on an unsigned char?]


From: Robert Baruch
Subject: Re: [avr-gcc-list] Why is gcc promoting on an unsigned char?]
Date: Tue, 23 Dec 2003 14:10:00 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624

-----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/6JMI3n80I35hhEsRAiZMAKCAtW2qAYqUcgQx8W9nyqfdO4oTQgCgkMnZ
O4E3+5ca1nHbKp7h+pK/kt8=
=wlgr
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]