Skip to content

evmone 0.26.0 "Fewer instructions"

Latest

Choose a tag to compare

@chfast chfast released this 27 Nov 17:19
v0.26.0
ec94617

This release speeds up the Baseline interpreter, precompiles and Keccak.

Changed

  • Baseline interpreter optimizations: CALLDATALOAD loads the whole word directly, the memory growth has a fast path for one word, pushing of 64-bit values does not use a temporary, and a taken JUMP/JUMPI is cheaper because the JUMPDEST analysis is kept in ExecutionState as a bitset of the native word size. The GCC inlining limits are raised for the interpreter loop. #1776 #1777 #1778 #1781 #1783 #1784 #1785 #1786 #1793 #1799 #1814
  • evmone is built with -fcf-protection=return on Linux x86-64: the Baseline interpreter does not execute ENDBR64 at every instruction dispatch. #649
  • Modular inversion uses the safegcd algorithm instead of the binary extended GCD. It makes ecadd faster and ecrecover and p256verify slightly faster. #1806
  • Precompile optimizations: with GCC, ecrecover, p256verify and ecmul are ~15% faster and modexp with moduli of 48 bytes or more is up to ~40% faster (unsigned __int128 multiply-accumulate); modexp executes ~4% fewer instructions with GCC (high word of the Montgomery reduction); p256verify does not invert Z; ecpairing multiplies by the Fq2 non-residue with 2 instead of 4 field multiplications and shares the addition chain for the curve seed; ripemd160 is restructured for inlining. #1640 #1648 #1800 #1803 #1833 #1838
  • Keccak optimizations: fewer instructions per permutation, and the Armv8.2 SHA3 instructions are used on Apple silicon. The implementation is converted from C to C++. #1696 #1771 #1773 #1774 #1775 #1839
  • The EIP-7702 delegation designation must be exactly 0xef0100 || address. Code starting with 0xef0100 of another size is not a delegation. This is unreachable in a valid state, but possible in arbitrary pre-states (e.g. fuzzing). #1822
  • GCC 12 is the minimum required version. #1832
  • Dependencies upgraded: intx 0.16.0 (the division by zero gives 0 without an extra check, and modexp divides unnormalized operands). #1834
  • The Execution Spec Tests fixtures upgraded to tests@v21.0.3. #1831

Fixed

  • set_option("opcode.count", ...) returned the invalid-name status for a valid option. #1810
  • The RLP encoder of the test tools aborted in debug builds or wrote a wrong prefix for a list longer than 16 MiB, e.g. the block access list of a block with a large gas limit. #1807
  • The test tools failed to load a legacy transaction with a chain id over 64 bits (EIP-155). It is rejected as a transaction for another chain. evmone t8n does not replace the chain id of a transaction that has one. #1829