{"id":4422,"date":"2026-11-21T07:49:13","date_gmt":"2026-11-21T07:49:13","guid":{"rendered":"https:\/\/wyominginvest.com\/?p=4422"},"modified":"2026-11-21T07:49:13","modified_gmt":"2026-11-21T07:49:13","slug":"solidity-compiler-v0-8-35-released-with-erc-7201-comptime-builtin-and-experimental-ssa-cfg-code-generator-3","status":"publish","type":"post","link":"https:\/\/wyominginvest.com\/?p=4422","title":{"rendered":"Solidity Compiler v0.8.35 Released with ERC-7201 Comptime Builtin and Experimental SSA CFG Code Generator"},"content":{"rendered":"<p>The development team has officially announced the release of the Solidity Compiler version v0.8.35, bringing significant upgrades to the Ethereum ecosystem&#8217;s most widely used smart contract development tool. Building upon previous iterations and drawing from insights gathered in recent developer surveys, this latest version introduces powerful new features designed to streamline storage management, formalize experimental development processes, and tackle some of the most persistent bottlenecks in the Intermediate Representation (IR) compilation pipeline.<\/p>\n<p>Among the standout additions in v0.8.35 is the introduction of a new builtin function, <code>erc7201<\/code>, which computes the base slot of an ERC-7201 namespaced storage layout directly from its namespace string. Alongside this feature, the release establishes a formal lifecycle and governance model for experimental compiler functionalities, highlighted by an innovative Static Single Assignment (SSA) control-flow graph code generator. Furthermore, the update addresses several critical bugfixes, continues preparations for the upcoming 0.9.0 release through targeted keyword deprecation warnings, and reorganizes ethdebug output selection to provide greater developer granularity.<\/p>\n<h2>Notable Features and Changes<\/h2>\n<h3>The <code>erc7201<\/code> Comptime Builtin<\/h3>\n<p>Solidity 0.8.35 introduces the <code>erc7201<\/code> function signature, allowing developers to compute the base storage slot for a namespace string cleanly and natively. The computation follows the formula defined in the official ERC-7201 standard, equivalent to hashing the string and applying bitwise operations to isolate the storage slot. ERC-7201 has become a cornerstone practice for placing smart contract state behind hashed namespaces, effectively preventing storage collisions in proxy-based and diamond-style upgradeable architectural patterns.<\/p>\n<p>This new builtin pairs seamlessly with the storage layout specifiers introduced in version 0.8.29 and subsequently expanded in 0.8.31. What makes <code>erc7201<\/code> uniquely powerful is that it marks the first compile-time (comptime) builtin in the Solidity language. Historically, Solidity&#8217;s comptime evaluator was limited exclusively to arithmetic operations performed on rational number literals. While traditional builtins like <code>keccak256<\/code> undergo constant folding during the optimization stage\u2014yielding gas savings\u2014they lacked the type-system capability required in a comptime context such as a layout specifier or an array length definition. <\/p>\n<p>By functioning as the language&#8217;s first true comptime builtin, <code>erc7201<\/code> can be utilized anywhere a compile-time expression is mandatory. This addition directly resolves limitations previously highlighted by the compiler team during the 0.8.31 release cycle, setting a strong precedent for future comptime enhancements.<\/p>\n<h3>Formalizing the Experimental Feature Process<\/h3>\n<p>In past releases, deploying in-development compiler features often required navigating a patchwork of ad-hoc command-line interface flags and <code>pragma experimental<\/code> directives. This decentralized approach lacked a consistent signaling mechanism, leaving developers with minimal visibility into the stability status of the features they were opting into. <\/p>\n<p>Version 0.8.35 rectifies this by establishing a formal, documented lifecycle and a canonical registry for all experimental features. Central to this new framework is the top-level <code>--experimental<\/code> command-line flag, or its equivalent boolean <code>settings.experimental<\/code> field within Standard JSON inputs. Operating as a master toggle, the flag does not enable any specific feature on its own; rather, it serves as a mandatory gatekeeper that must be active for any per-feature flags or pragmas to be accepted by the compiler.<\/p>\n<p>Attempting to use experimental features without the master flag now triggers a hard error. Developers who previously relied on individual flags will need to incorporate <code>--experimental<\/code> into their build pipelines to maintain continuity. This shift does not represent a backwards-compatibility break, as experimental features have consistently been excluded from formal stability guarantees. Instead, it introduces necessary transparency, ensuring that no developer unknowingly adopts unstable functionalities that carry no stability guarantees and remain subject to breaking changes even across minor compiler releases.<\/p>\n<p>Additionally, compilation metadata has been updated to reflect these choices. Both JSON and CBOR metadata now record whether experimental mode was enabled during a build. The CBOR <code>experimental<\/code> field has been broadened to capture this state, successfully closing a previous oversight where targeting unreleased EVM environments could generate experimental bytecode without explicitly flipping the tracking flags.<\/p>\n<h3>Experimental SSA CFG Code Generator<\/h3>\n<p>Addressing two of the most significant and long-standing pain points in smart contract development\u2014compilation speed and stack-too-deep errors\u2014Solidity 0.8.35 delivers an experimental new EVM backend for the IR pipeline. Operating from the program&#8217;s Static Single Assignment (SSA) form control-flow graphs, or SSA CFGs, the backend generates bytecode utilizing precomputed stack layouts. The backend subsequently shuffles the physical EVM stack to align with these precomputed arrangements.<\/p>\n<p>Stack-too-deep errors consistently ranked as the most commonly reported recurring issue in the recent Solidity Developer Survey, while compilation via IR has historically lagged behind the traditional <code>evmasm<\/code> pipeline in terms of raw speed. The legacy Yul-to-EVM code transformation relies heavily on heuristics that frequently struggle when processing deeply nested expressions and intricate control flow. By introducing an SSA-based backend, the compiler establishes a much more robust mathematical foundation for stack scheduling and overall performance optimization.<\/p>\n<p>Developers can experiment with this new code generator by passing <code>--experimental --via-ssa-cfg<\/code> via the command line, or by configuring <code>settings.experimental: true<\/code> alongside <code>settings.viaSSACFG: true<\/code> in Standard JSON inputs. Both configurations inherently imply <code>--via-ir<\/code>. Although the codegen undergoes rigorous testing against the complete external-contract semantic test suite during every pull request, it is not yet enabled by default for <code>--via-ir<\/code>. The development team emphasizes that raw gas optimization data alone will not suffice for promotion; the feature will undergo extensive review, dedicated fuzzing, and external security audits prior to becoming standard.<\/p>\n<h3>Deprecation Warnings for Upcoming 0.9.0 Keywords<\/h3>\n<p>Continuing the deprecation trajectory initiated in version 0.8.31, the 0.8.35 release introduces warnings for a new set of identifiers that are scheduled to be promoted to reserved keywords in the forthcoming 0.9.0 release. While earlier deprecations focused primarily on retiring obsolete features, this current batch centers entirely 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 compiler warnings. Within Yul contexts\u2014including both standalone scripts and inline assembly blocks\u2014<code>leave<\/code> will transition into a Yul keyword, while <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 become reserved Yul identifiers. Because these latter terms represent established Yul builtins that are typically kept reserved, their delayed reservation reflects the unique complexities of managing the extended 0.8.x release lifecycle under strict backwards-compatibility policies.<\/p>\n<p>These notices are currently emitted as non-blocking warnings rather than critical errors. Existing codebases will continue to compile successfully, granting developers a transitional window to refactor and rename affected declarations before version 0.9.0 converts these warnings into compilation failures.<\/p>\n<h3>Revert Strings, Custom Errors, and ethdebug Reorganization<\/h3>\n<p>Version 0.8.35 resolves a subtle inconsistency within the IR compilation pipeline concerning <code>--revert-strings strip<\/code> (or <code>revertStrings: \"strip\"<\/code> in Standard JSON configurations). Designed to optimize gas consumption by omitting descriptive revert reason strings while still preserving execution halts, the feature historically interacted unexpectedly with custom errors. <\/p>\n<p>Because <code>require<\/code> statements paired with custom errors\u2014introduced in version 0.8.26\u2014encode structured data rather than simple human-readable strings, the IR pipeline previously stripped custom error arguments alongside standard strings. This resulted in failed transactions reverting with empty error data rather than the intended custom error payload. The legacy <code>evmasm<\/code> pipeline did not exhibit this behavior, creating a pipeline discrepancy. The development team resolved this inconsistency by ensuring that custom errors are preserved, aligning the IR pipeline&#8217;s behavior without expanding the scope of string stripping.<\/p>\n<p>Finally, the release reorganizes <code>ethdebug<\/code> output selection to align with standard compiler output patterns. The former <code>--ethdebug<\/code> and <code>--ethdebug-runtime<\/code> flags have been replaced by granular options: <code>--ethdebug-resources<\/code>, <code>--ethdebug-compilation<\/code>, <code>--ethdebug-program<\/code>, and <code>--ethdebug-program-runtime<\/code>, with corresponding keys available in Standard JSON. These outputs no longer force full binary compilations automatically, and <code>ethdebug<\/code> remains explicitly experimental, requiring the master <code>--experimental<\/code> flag to operate.<\/p>\n<h3>How to Install and Upgrade<\/h3>\n<p>Developers seeking to upgrade their development environments to Solidity Compiler v0.8.35 can consult the official installation instructions provided in the language documentation. Pre-compiled binaries and release packages are accessible directly through the project&#8217;s GitHub repository. Developers building directly from source are advised to utilize the official source tarball rather than the automatically generated GitHub source archives to ensure build integrity.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The development team has officially announced the release of the Solidity Compiler version v0.8.35, bringing significant upgrades to the Ethereum ecosystem&#8217;s most widely used smart contract development tool. Building upon previous iterations and drawing from insights gathered in recent developer surveys, this latest version introduces powerful new features designed to streamline storage management, formalize experimental<\/p>\n","protected":false},"author":10,"featured_media":4421,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[366],"tags":[401,2407,406,1184,2406,2313,407,2014,5,400,402],"class_list":["post-4422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-smart-contract-auditing","tag-auditing","tag-builtin","tag-code","tag-compiler","tag-comptime","tag-experimental","tag-generator","tag-released","tag-security","tag-smart-contracts","tag-solidity"],"_links":{"self":[{"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/posts\/4422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4422"}],"version-history":[{"count":0,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/posts\/4422\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/media\/4421"}],"wp:attachment":[{"href":"https:\/\/wyominginvest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}