ZKsync has introduced solx Beta, a new Solidity compiler designed to eliminate the infamous "stack-too-deep" error—without altering contract semantics. By seamlessly integrating stack-to-memory spillover within the default compiler pipeline, solx makes complex smart contract development more reliable and gas-efficient.
Fixes stack-too-deep by spilling select stack values into memory.
Maintains exact behavior and semantics of legacy solc-compiled contracts.
Delivers gas savings in 92% of tested cases, including ~0.56% per ERC-20 transfer.
Read more at: zksync.mirror.xyz
2025-07-11