[Icc-mot] Better optimizer ideas
Gene Norris
genenorris at spotengineering.com
Wed Nov 15 14:03:03 PST 2006
Richard,
It may be able to be optimize:
0033 ; c = ((((unsigned char)-1)>>1)); //MAX INT
0033 CCFFFF ldd #65535
0036 87 clra
0037 87 clra
0038 47 asra
0039 56 rorb
003A 6C80 std 0,S
clra does not need repeated
asra is not required after clra (clra clears the carry bit)
so, a couple of possible peep holes
clra + clra = clra
clra + asra = clra
--
Gene Norris
Chief Engineer
SPOT Engineering, Inc.
1261 Campground Road
Lancaster, Ohio 43130
740.654.0880
FAX.654.0889
http://www.spotengineering.com/
More information about the Icc-mot
mailing list