Gas-Cost Behavior in Turing-Complete Smart Contract Execution on the Ethereum Virtual Machine
Keywords:
EVM, Gas Cost, Smart Contracts, EthereumAbstract
This paper examines gas-cost behavior in the Ethereum Virtual Machine (EVM) during the initial Frontier-era deployment of Turing-complete smart contracts in 2015. We analyze how stack operations, memory expansion, persistent storage writes, external calls, and iterative execution patterns contribute to total gas consumption, shaping both contract performance and execution feasibility. Through case studies comparing token transfers, computation-heavy loops, and mapping-based state updates, we highlight how certain workflow designs remain predictable while others risk unbounded gas growth and transaction failure. The findings emphasize cost-aware programming as a critical discipline for preventing denial-of-service vulnerabilities and ensuring secure, maintainable, and efficient contract architecture in decentralized applications.