
{ solx }
A gas-efficient Solidity compiler for Ethereum
Powered by LLVM, the most mature compiler infrastructure in the world.
Brought to the Ethereum community by the ZKsync team.
Features
Gas Optimization
Advanced bytecode optimization techniques reduce gas costs compared to solc generated bytecode, with the same exact functionality.
Drop-in Ready
Compatible with existing solc flags and configurations. Works with Foundry, Hardhat, and other development tools out of the box.
LLVM Framework
Built on LLVM's world-class compiler infrastructure, enabling robust optimizations and reliable code generation.
Use solx with your favorite tools
Download the solx binary
Get the latest version of solx from the GitHub releases page.
Create a solx profile in your foundry.toml
Build your project with solx
Use the solx profile to compile your project with enhanced optimizations.
💡 Pro tip: You can also use the solx profile for testing and getting gas reports.
Get involved
Help us build the future of Solidity compilation
Learn
Take some time to explore our documentation to help you better understand how solx works.
READ THE DOCSTry
The solx team has compiled demos and examples to help you get started with the compiler quickly.
TRY THE DEMOContribute
solx is truly a community effort, and we welcome contribution from hobbyists and production users alike!
CONTRIBUTION GUIDEsolx vs solc
Want to see how solx performs compared to solc? Check out our demo project to benchmark and test.
Gas Consumption Across Different Contracts
* Based on gas reports produced by Foundry and solx dedicated test suite.