{"id":4728,"date":"2026-11-28T15:15:13","date_gmt":"2026-11-28T15:15:13","guid":{"rendered":"https:\/\/smartcryptosecurity.com\/?p=4728"},"modified":"2026-11-28T15:15:13","modified_gmt":"2026-11-28T15:15:13","slug":"solidity-compiler-v0-8-35-released-with-new-erc-7201-builtin-experimental-ssa-cfg-generator-and-key-precursor-updates-for-0-9-0","status":"publish","type":"post","link":"https:\/\/smartcryptosecurity.com\/?p=4728","title":{"rendered":"Solidity Compiler v0.8.35 Released with New ERC-7201 Builtin, Experimental SSA CFG Generator, and Key Precursor Updates for 0.9.0"},"content":{"rendered":"<p>The development team behind Solidity has officially announced the release of the Solidity Compiler version v0.8.35, bringing a robust set of improvements designed to streamline smart contract development, improve compiler performance, and lay the groundwork for future language standards. This latest release follows the pre-release preview shared earlier in March and introduces several highly anticipated capabilities, including the language&#8217;s first compile-time (comptime) builtin function, a formalized lifecycle and master flag for experimental features, and a brand-new experimental code generator targeted at mitigating chronic compilation bottlenecks.<\/p>\n<h2>Notable Features and Changes<\/h2>\n<h3>The <code>erc7201<\/code> Comptime Builtin<\/h3>\n<p>Among the standout features in Solidity v0.8.35 is the introduction of a new builtin function, <code>erc7201<\/code>, which computes the base storage slot of an ERC-7201 namespaced storage layout directly from its given namespace string. Implementing the formula established by the ERC-7201 standard\u2014mathematically equivalent to <code>keccak256(keccak256(id) - 1) &amp; ~0xff<\/code>\u2014this function helps formalize the industry practice of placing smart contract state behind hashed namespaces. This mechanism is critical for avoiding storage collisions in proxy-based and diamond-style upgradeable architecture patterns.<\/p>\n<p>Crucially, <code>erc7201<\/code> pairs naturally with the custom storage layout specifiers introduced in version 0.8.29 and subsequently extended in version 0.8.31, allowing developers to cleanly declare storage layouts directly on contracts. What elevates this addition beyond a standard library utility is that <code>erc7201<\/code> marks the very first compile-time builtin in the history of the language. <\/p>\n<p>Previously, Solidity&#8217;s comptime evaluator was strictly limited to arithmetic operations performed on rational number literals. While conventional builtins like <code>keccak256<\/code> have long benefited from constant folding optimizations during the code-generation stage\u2014yielding important gas savings\u2014they lacked the type-system capabilities required to function within strict compile-time contexts like layout specifiers. By enabling <code>erc7201<\/code> to be used wherever a compile-time expression is required, such as defining base slots or array lengths, this release directly addresses previous structural limitations and signals a broader evolution toward a more capable comptime evaluator in future updates.<\/p>\n<h3>Formalizing the Experimental Feature Process<\/h3>\n<p>In past iterations of the compiler, various in-development features could be enabled using a scattered combination of ad-hoc command-line interface flags and <code>pragma experimental<\/code> directives. This fragmentation made it difficult for developers to track whether they were opting into unstable functionality, often leaving metadata signaling patchy and inconsistent.<\/p>\n<p>Version 0.8.35 addresses this ambiguity by introducing a formalized process for experimental features, supported by a dedicated section in the compiler documentation. The centerpiece of this new approach is a top-level <code>--experimental<\/code> master flag, along with a corresponding boolean <code>settings.experimental<\/code> field within Standard JSON inputs. While this master toggle does not activate any individual feature on its own, it serves as a strict prerequisite; any attempt to utilize per-feature flags or pragmas without supplying <code>--experimental<\/code> will now trigger a hard error.<\/p>\n<p>This policy change does not represent a backwards-compatibility break, as experimental features have historically been excluded from formal stability guarantees. Instead, it introduces explicit clarity at the user interface level, ensuring that no developer unwittingly deploys experimental code. Features gated under this mode carry no stability guarantees and remain subject to breaking changes, even across non-breaking compiler releases. <\/p>\n<p>To ensure complete transparency, compilation with experimental mode enabled is now permanently recorded within both JSON and CBOR contract metadata. The CBOR <code>experimental<\/code> field, which previously indicated only experimental source pragmas, has been broadened to capture this state comprehensively, successfully closing a previous gap where targeting unreleased EVM versions could yield experimental bytecode without tripping external flags.<\/p>\n<h3>Experimental SSA CFG Code Generator<\/h3>\n<p>Solidity v0.8.35 also delivers an experimental new Ethereum Virtual Machine (EVM) backend for the intermediate representation (IR) pipeline. This novel architecture generates optimized bytecode directly from a program&#8217;s Static Single Assignment (SSA) form control-flow graphs, maintaining one graph per function paired with a precomputed stack layout that the backend dynamically shuffles the EVM stack to match.<\/p>\n<p>This development directly targets two of the most persistent pain points reported by developers in recent surveys: long compilation times and the infamous &quot;stack-too-deep&quot; errors. According to recent ecosystem developer feedback, stack-too-deep issues remain the most commonly cited recurring hurdle when building complex decentralized applications, while IR-based compilation has historically lagged behind the traditional <code>evmasm<\/code> pipeline in raw speed. <\/p>\n<p>The legacy Yul-to-EVM code transformation relies on heuristics that frequently struggle when processing deeply nested expressions and intricate control-flow paths. By transitioning toward an SSA-based backend, the compiler gains a much more resilient structural foundation for stack scheduling and overall compilation performance. Although this code generator is thoroughly tested against the complete external-contract semantic test suite during every pull request, it remains an early experimental release that is not yet enabled by default for <code>--via-ir<\/code>. Before achieving default status, the feature will undergo rigorous code review, extensive fuzzing, and external security audits. Developers wishing to test the new generator can enable it using <code>--experimental --via-ssa-cfg<\/code> on the command line, or by configuring the equivalent JSON settings fields.<\/p>\n<h3>Deprecation Warnings for Upcoming 0.9.0 Keywords<\/h3>\n<p>Continuing the systematic deprecation trajectory initiated in version 0.8.31, Solidity v0.8.35 introduces a new wave of warnings alerting developers to identifiers that will be officially promoted to reserved keywords in the upcoming 0.9.0 release. While earlier deprecations focused primarily on phasing out obsolete language features, this batch centers on claiming specific names to prevent future namespace collisions.<\/p>\n<p>Solidity declarations utilizing identifiers such as <code>at<\/code>, <code>error<\/code>, <code>layout<\/code>, <code>leave<\/code>, <code>super<\/code>, <code>this<\/code>, or <code>transient<\/code> will now generate compilation warnings. Similarly, within Yul and inline assembly contexts, <code>leave<\/code> is slated to become a formal Yul keyword, while terms including <code>basefee<\/code>, <code>blobbasefee<\/code>, <code>blobhash<\/code>, <code>clz<\/code>, <code>mcopy<\/code>, <code>memoryguard<\/code>, <code>prevrandao<\/code>, <code>tload<\/code>, and <code>tstore<\/code> will transition into reserved Yul identifiers. Because these latter identifiers represent core Yul builtins that are typically reserved by default, their inclusion here reflects the unique length of the 0.8.x release cycle, where compatibility policies necessitate holding certain reservations until a major version boundary. These notices are currently issued as non-blocking warnings rather than errors, granting developers an adequate transition window to safely rename affected declarations before version 0.9.0 arrives.<\/p>\n<h3>Improvements to Revert Strings and Custom Errors<\/h3>\n<p>Another notable fix in this release resolves an inconsistency involving the <code>--revert-strings strip<\/code> optimization flag, which corresponds to <code>revertStrings: \"strip\"<\/code> in Standard JSON configurations. Designed to reduce gas consumption by omitting verbose revert reason strings from compiled bytecode, the flag operated under the premise that error messages served human debugging purposes rather than structured data dependencies for interacting contracts.<\/p>\n<p>The introduction of <code>require(condition, CustomError(...))<\/code> in version 0.8.26 complicated this assumption because custom errors encode structured ABI data. Prior to version 0.8.35, the IR pipeline inadvertently stripped the custom error arguments of <code>require<\/code> statements alongside standard error strings, causing failed checks to revert with empty data payloads instead of transmitting the expected custom error encoding. Because the legacy <code>evmasm<\/code> pipeline handled this scenario differently, version 0.8.35 rectifies the discrepancy by ensuring that custom errors are preserved under the IR pipeline, eliminating pipeline-specific behavioral differences without expanding the scope of the strip operation.<\/p>\n<h3>Ethdebug Output Reorganization<\/h3>\n<p>To provide finer granularity and better alignment with standard output handling, this release completely reorganizes the output selection mechanisms for the ethdebug format. The former <code>--ethdebug<\/code> and <code>--ethdebug-runtime<\/code> command-line flags have been deprecated in favor of four distinct options: <code>--ethdebug-resources<\/code>, <code>--ethdebug-compilation<\/code>, <code>--ethdebug-program<\/code>, and <code>--ethdebug-program-runtime<\/code>, with corresponding structural updates implemented for Standard JSON inputs. Under the updated architecture, generating ethdebug outputs no longer forces an automatic full binary compilation. Furthermore, ethdebug remains an experimental capability and is now properly locked behind the new <code>--experimental<\/code> master flag alongside other unstable compiler features.<\/p>\n<p>Developers looking to adopt the latest improvements can review the complete installation instructions and download the official v0.8.35 release package directly from the project&#8217;s GitHub repository. When building manually from source, teams are advised to utilize the dedicated source tarball rather than automated GitHub archives to ensure build integrity.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The development team behind Solidity has officially announced the release of the Solidity Compiler version&#8230;<\/p>\n","protected":false},"author":18,"featured_media":4727,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[366],"tags":[401,2382,1230,2183,407,3624,2001,5,400,402,638],"class_list":["post-4728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-smart-contract-auditing","tag-auditing","tag-builtin","tag-compiler","tag-experimental","tag-generator","tag-precursor","tag-released","tag-security","tag-smart-contracts","tag-solidity","tag-updates"],"_links":{"self":[{"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=\/wp\/v2\/posts\/4728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4728"}],"version-history":[{"count":0,"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=\/wp\/v2\/posts\/4728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=\/wp\/v2\/media\/4727"}],"wp:attachment":[{"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartcryptosecurity.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}