solidity icon indicating copy to clipboard operation
solidity copied to clipboard

local variable in solidity

Open tharinduvindula opened this issue 7 years ago • 1 comments

Abstract

can you increase stack size for local variables Capture3

Motivation

Specification

Backwards Compatibility

tharinduvindula avatar Oct 25 '19 04:10 tharinduvindula

@tharinduvindula The number of accessible stack elements is a property of the EVM and can't be changed by the compiler. There is a draft EIP that targets this issue though: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-663.md.

Please consider e.g. decreasing the number of parameters and / or return parameters of your function. Most of the times you can work around this limitation by simplifying and modularizing your functions. You can also reach out to https://gitter.im/ethereum/solidity for further advice.

I'll close this issue for now, please feel free to re-open if needed.

erak avatar Oct 25 '19 11:10 erak