[Mono-devel-list] [PATCH] Use smallest encoding for <alu> eax, imm

Paolo Molaro lupus at ximian.com
Mon May 24 06:15:21 EDT 2004


On 05/21/04 Ben Maurer wrote:
> The attached patch uses the smallest possible encoding for operations
> such as
> 
> add eax, 5
> 
> Before we emitted 5 as a 32 bit value in order to save one bit by using
> the eax trick -- a foolish trade.

Dude, this is a 0.35 % size decrease, which is almost always good, but
not worthy of the rethoric. Since the code comes from the Intel people who
wrote ORP, I'd like to see some hard numbers on speed or pointers to reports
before making this change, given that the size reduction is so small
anyway.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list