6 Dec 2026, Sun

Solidity Compiler v0.8.35 Released with ERC-7201 Comptime Builtin and Experimental SSA CFG Code Generator

The development team behind the Solidity programming language has officially announced the release of the Solidity Compiler v0.8.35. Building upon previous iterations and pre-releases, this latest version brings significant architectural improvements to the compiler pipeline, introduces new compile-time language features, formalizes the management of experimental development features, and addresses several long-standing bug fixes. As the smart contract ecosystem continues to demand faster compilation times, greater optimization, and robust upgradeability patterns, version 0.8.35 provides crucial tools for developers navigating complex EVM deployments.

Notable Features and Changes

The rollout of Solidity v0.8.35 introduces several powerful capabilities designed to streamline contract architecture and optimize the underlying compilation pipeline. Among the primary highlights are the debut of a compile-time builtin for ERC-7201 namespaced storage, a formalized experimental framework, a brand-new Static Single Assignment control-flow graph code generator, and critical alignment adjustments for error-handling mechanisms.

The erc7201 Comptime Builtin

One of the most notable additions in Solidity v0.8.35 is the introduction of a new builtin function: erc7201(string memory id) returns (uint). This function is engineered to compute the base storage slot for a namespace string precisely using the formula defined in ERC-7201, which is mathematically equivalent to keccak256(keccak256(id) - 1) & ~0xff.

ERC-7201 formalizes the widespread industry practice of placing a contract’s storage state behind a deterministically hashed namespace. This pattern has become vital for preventing storage collisions in proxy-based and diamond-style upgradeable smart contract architectures, where multiple implementation contracts share a single storage context.

This new builtin pairs seamlessly with the layout at storage layout specifier that was initially introduced in version 0.8.29 and subsequently extended in version 0.8.31. By leveraging the erc7201 function directly within contract definitions, developers can establish namespaced layouts cleanly without resorting to manual hash calculations or external scripting.

Crucially, what distinguishes erc7201 from previous builtins is that it serves as the language’s very first compile-time (comptime) builtin. Up to this point, Solidity’s comptime evaluator was strictly limited to performing arithmetic on rational number literals. While existing builtins like keccak256 undergo constant folding during the optimization stage—yielding gas savings at runtime—they previously lacked the type-system benefit of being usable in a comptime context such as a storage layout specifier or an array length declaration. As the first builtin whose result can be evaluated entirely at compile time, erc7201 addresses a major limitation previously noted by the core team and paves the way for a more capable comptime evaluator in future language versions.

Formalizing the Experimental Feature Process

In past releases, the Solidity compiler has occasionally shipped in-development features that could be activated through a combination of ad-hoc command-line interface flags and pragma experimental directives. However, this decentralized approach lacked a unified mechanism for informing users when they were opting into unstable functionality, resulting in patchy metadata signaling and inconsistent user experiences.

With the release of version 0.8.35, the development team has formalized the entire lifecycle of experimental features. The complete process is thoroughly detailed in the newly updated documentation, with significant modifications implemented at the user interface level.

To use any experimental feature, developers must now explicitly supply a new top-level --experimental flag via the command line, or configure the equivalent boolean settings.experimental field when utilizing Standard JSON input. Serving as a master toggle, --experimental does not automatically enable any single feature on its own; rather, it acts as a mandatory prerequisite for any per-feature flags or pragmas to be accepted by the compiler. A canonical list of all current experimental features, along with their respective identifiers and driving flags, is maintained within the official documentation.

Attempting to invoke an experimental feature without the master --experimental toggle now triggers a hard compilation error. Developers who were previously passing affected feature flags directly must update their compilation commands or JSON configurations to include the new flag in order to maintain continuous builds. The core team emphasizes that this change does not constitute a backwards-compatibility break, as experimental features have traditionally been exempt from stability guarantees. Instead, the update makes this distinction explicit, ensuring that no developer accidentally opts into unstable functionality that carries no stability guarantees and may undergo breaking changes even during non-breaking compiler releases.

Furthermore, whether a contract was compiled with experimental mode enabled is now permanently recorded within both JSON and CBOR metadata. The CBOR experimental field, which historically only signaled experimental pragmas present within the source code, has been expanded to cover this broader state. This adjustment successfully closes a known technical gap wherein targeting an unreleased Ethereum Virtual Machine version could previously produce experimental bytecode without flipping the corresponding flag.

Experimental SSA CFG Code Generator

Solidity 0.8.35 also delivers an experimental new EVM backend designed specifically for the Intermediate Representation (IR) pipeline. This backend generates bytecode directly from a program’s Static Single Assignment (SSA) form control-flow graphs—referred to as SSA CFGs, with one generated per function—coupled with a precomputed stack layout that the backend subsequently shuffles the EVM stack to match.

The rationale behind developing this alternative backend lies in two persistent pain points that have long affected the IR pipeline: stack-too-deep errors and excessively slow compilation times. In recent developer surveys, stack-too-deep errors consistently emerged as the most frequently reported recurring issue among smart contract engineers, while compilation via IR has historically been measurably slower than the traditional evmasm pipeline. The conventional Yul-to-EVM code transformation relies heavily on heuristics that often struggle when processing deeply nested expressions and intricate control flow, which in turn contributes to extended build times.

By shifting toward an SSA-based backend, the compiler gains a significantly more robust architectural foundation for stack scheduling and overall compilation performance. The development team views this approach as the most realistic long-term solution to resolving both performance bottlenecks. The inner workings of the SSA CFG have been detailed in technical presentations within the developer community, and the feature can be enabled by supplying --experimental --via-ssa-cfg on the command line or by configuring settings.experimental: true alongside settings.viaSSACFG: true in Standard JSON input, with both configurations implicitly enabling --via-ir.

This initial release represents an early experimental rollout. Although the code generator is rigorously tested against the full external-contract semantic test suite during every pull request, it is not yet set as the default for --via-ir builds, and performance metrics alone will not trigger its promotion. Before it becomes the standard pipeline, it will undergo extensive code review, advanced fuzzing, and likely an external security audit. In alignment with the new experimental policy, only major architectural changes affecting this specific codegen will be documented in future changelogs.

Deprecation Warnings for Upcoming 0.9.0 Keywords

Continuing the deprecation trajectory that commenced with version 0.8.31, Solidity 0.8.35 introduces new warning messages for various identifiers that are scheduled to be promoted to official keywords in the upcoming major 0.9.0 release. While the previous deprecations primarily focused on retiring legacy language features, this batch centers on claiming specific names to prevent naming collisions and standardize the syntax.

Specifically, Solidity declarations utilizing terms such as at, error, layout, leave, super, this, or transient will now emit a warning. Within the context of Yul, whether used standalone or via inline assembly, leave is slated to become a formal Yul keyword, while terms including basefee, blobbasefee, blobhash, clz, mcopy, memoryguard, prevrandao, tload, and tstore are transitioning into reserved Yul identifiers. Because the latter group represents standard Yul builtins that are normally reserved by design, the growing list of exceptions reflects the unusual length of the 0.8.x release cycle, whose backwards-compatibility policy requires holding these changes until version 0.9.0.

It is important to note that these notifications are issued strictly as warnings rather than hard errors. Existing codebase implementations will continue to compile successfully, affording developers an adequate transition window to rename affected declarations well before version 0.9.0 converts these warnings into compilation failures.

Resolving Revert String Stripping and Custom Errors

The compiler option --revert-strings strip, corresponding to revertStrings: "strip" in Standard JSON input, has long served as a popular gas-optimization technique by eliminating revert reason strings from compiled bytecode while ensuring that contract execution still reverts appropriately upon failure. The underlying design assumption was that returndata primarily functions as a human-readable diagnostic message for end-users rather than structured data upon which interacting smart contracts should programmatically depend.

However, the introduction of features like require(condition, CustomError(...)) in version 0.8.26 complicated this premise, as custom errors inherently encode structured data. Prior to version 0.8.35, the IR pipeline (--via-ir) incorrectly stripped the custom-error argument of a require statement alongside standard strings, causing failing assertions to revert with empty error data instead of the properly encoded custom error. Meanwhile, the legacy evmasm pipeline handled the scenario differently, creating an inconsistency between compilation pipelines.

The core team opted to resolve this discrepancy by preserving the custom error rather than expanding the scope of string stripping. This bug—which exclusively affected require() statements rather than plain revert expressions utilizing custom errors, and was limited strictly to the IR pipeline—has been fully corrected in version 0.8.35.

Ethdebug Output Reorganization

In an effort to improve developer tooling integration, this release reorganizes the output selection mechanism for the ethdebug debugging format to be more granular and consistent with other compiler outputs. The former flags --ethdebug and --ethdebug-runtime have been replaced by --ethdebug-resources, --ethdebug-compilation, --ethdebug-program, and --ethdebug-program-runtime, with corresponding keys introduced in Standard JSON configurations. Furthermore, ethdebug outputs no longer force a complete binary compilation step, and the format remains classified as an experimental feature, now properly gated behind the new --experimental flag.

How to Install and Upgrade

Developers wishing to adopt Solidity Compiler v0.8.35 can access the updated installation instructions through the official project documentation. Pre-compiled binary releases are available directly via the project’s GitHub repository.

For teams preferring to compile the software from source code, the maintainers strongly advise against using the automatically generated source archives provided by GitHub. Instead, developers should retrieve the official solidity_0.8.35.tar.gz source tarball or check out the designated release tag directly via git. The Solidity core team has expressed gratitude to all community contributors who provided code, testing, and feedback to make this release possible.

Leave a Reply

Your email address will not be published. Required fields are marked *