EVMC
evmc_instruction_metrics Struct Reference

Metrics for an EVM 1 instruction. More...

#include <instructions.h>

Public Attributes

int16_t gas_cost
 The instruction gas cost. More...
 
int8_t stack_height_required
 The minimum number of the EVM stack items required for the instruction. More...
 
int8_t stack_height_change
 The EVM stack height change caused by the instruction execution, i.e. More...
 

Detailed Description

Metrics for an EVM 1 instruction.

Small integer types are used here to make the tables of metrics smaller.

Definition at line 186 of file instructions.h.

Member Data Documentation

◆ gas_cost

int16_t evmc_instruction_metrics::gas_cost

The instruction gas cost.

Definition at line 189 of file instructions.h.

◆ stack_height_change

int8_t evmc_instruction_metrics::stack_height_change

The EVM stack height change caused by the instruction execution, i.e.

stack height after execution - stack height before execution.

Definition at line 198 of file instructions.h.

◆ stack_height_required

int8_t evmc_instruction_metrics::stack_height_required

The minimum number of the EVM stack items required for the instruction.

Definition at line 192 of file instructions.h.


The documentation for this struct was generated from the following file: