{"id":5288,"date":"2026-12-05T23:49:15","date_gmt":"2026-12-05T23:49:15","guid":{"rendered":"https:\/\/wyominginvest.com\/?p=5288"},"modified":"2026-12-05T23:49:15","modified_gmt":"2026-12-05T23:49:15","slug":"solidity-compiler-v0-8-35-released-with-native-erc-7201-support-experimental-ssa-cfg-backend-and-upcoming-0-9-0-deprecations","status":"publish","type":"post","link":"https:\/\/wyominginvest.com\/?p=5288","title":{"rendered":"Solidity Compiler v0.8.35 Released with Native ERC-7201 Support, Experimental SSA CFG Backend, and Upcoming 0.9.0 Deprecations"},"content":{"rendered":"<p>The development team behind the Solidity programming language has officially announced the release of Solidity Compiler version 0.8.35. This latest version introduces a powerful new compile-time builtin designed to streamline upgradeable smart contract architectures, formalizes the management and gating of experimental features, rolls out an early experimental Static Single-Assignment Control-Flow Graph code generator to tackle chronic compilation bottlenecks, and continues the deliberate groundwork for the upcoming 0.9.0 breaking release.<\/p>\n<p>The release follows a pre-release phase that gave developers an early look at several incoming changes. With version 0.8.35 now publicly available, the ecosystem gains a robust set of tools aimed at addressing long-standing developer pain points, improving compiler performance, and tightening language standards ahead of future milestones.<\/p>\n<h2>Notable Features and Changes<\/h2>\n<h3>erc7201 Comptime Builtin<\/h3>\n<p>A primary highlight of Solidity 0.8.35 is the introduction of a specialized new builtin function, <code>erc7201(string memory id) returns (uint)<\/code>. This function is engineered to compute the base storage slot for a namespaced storage layout directly from a namespace string, utilizing the exact mathematical formula defined in ERC-7201: <code>keccak256(keccak256(id) - 1) &amp; ~0xff<\/code>. <\/p>\n<p>The ERC-7201 standard formalizes a widely adopted industry practice of placing a smart contract&#8217;s state variables behind a securely hashed namespace string. This approach effectively prevents storage collision vulnerabilities in complex proxy-based architectures and diamond-style upgradeable smart contract patterns. <\/p>\n<p>The new builtin integrates seamlessly with the custom storage layout specifiers introduced in earlier compiler iterations, allowing developers to define storage layouts cleanly. What sets <code>erc7201<\/code> apart from previous builtins is that it is the very first compile-time (comptime) builtin in the language. Until now, Solidity&#8217;s comptime evaluator was strictly limited to arithmetic operations performed on rational number literals. While older builtins like <code>keccak256<\/code> benefited from constant folding optimization passes during code generation, they could not be utilized within contexts that strictly required a compile-time expression, such as storage layout specifiers or array length declarations. <\/p>\n<p>By making <code>erc7201<\/code> available wherever a comptime expression is required, the compiler resolves previous limitations regarding constants in storage layout specifiers, signaling a broader architectural push toward a more capable comptime evaluation engine in future releases.<\/p>\n<h3>Formalizing the Experimental Feature Process<\/h3>\n<p>In past releases, the Solidity compiler introduced various in-development features that users could activate through an ad-hoc mixture of command-line flags and source-level pragma experimental directives. However, this decentralized approach lacked a consistent mechanism to signal instability or notify developers that they were opting into unvetted functionality.<\/p>\n<p>Version 0.8.35 rectifies this by establishing a formalized, transparent lifecycle and a canonical list for experimental features. Using any experimental feature now strictly requires a new top-level <code>--experimental<\/code> flag on the command line, or the equivalent boolean <code>settings.experimental<\/code> configuration field when using Standard JSON compiler input. <\/p>\n<p>The <code>--experimental<\/code> option acts as a master toggle. By itself, it does not enable any specific feature, but its presence is mandatory for any individual experimental flag or pragma to be accepted by the compiler. Attempting to use experimental features without providing this master toggle now triggers a hard compilation error. Projects that previously passed individual experimental flags will need to incorporate the new top-level toggle to maintain continuous builds. <\/p>\n<p>The development team emphasizes that this update is not a backwards-compatibility break, as experimental features have historically been excluded from formal stability guarantees. Instead, the change makes the unstable nature of these features explicit. Experimental functionalities carry no stability guarantees and remain subject to breaking changes even across non-breaking compiler releases.<\/p>\n<p>Furthermore, compilation artifacts now record whether experimental mode was active during the build process, capturing this state in both JSON and CBOR metadata. This expansion of the CBOR metadata field also closes a previous reporting gap where targeting unreleased Ethereum Virtual Machine versions could generate experimental bytecode without properly flagging the output.<\/p>\n<h3>Experimental SSA CFG Code Generator<\/h3>\n<p>Addressing two of the most persistent complaints among smart contract developers\u2014stack-too-deep errors and slow compilation times\u2014Solidity 0.8.35 introduces an experimental new EVM backend for the IR pipeline. Operating under the newly established experimental framework, this backend generates machine bytecode directly from the program&#8217;s Static Single-Assignment form control-flow graphs, commonly referred to as SSA CFGs.<\/p>\n<p>Stack-too-deep errors have consistently ranked as the most frequently reported recurring issue in developer surveys, and compilation via the intermediate representation pipeline has historically been measurably slower than the legacy evmasm pipeline. The traditional Yul-to-EVM code transformation relies on heuristics that frequently struggle when handling deeply nested expressions and intricate control flow, which in turn drives up compilation duration. <\/p>\n<p>The new SSA-based backend utilizes functions represented as control-flow graphs with precomputed stack layouts. The backend then shuffles the EVM stack to align with these precomputed layouts, offering a structurally superior foundation for stack scheduling and overall compilation performance. <\/p>\n<p>Developers can test the new code generator by supplying the <code>--experimental<\/code> and <code>--via-ssa-cfg<\/code> flags together on the command line, or by configuring <code>settings.experimental: true<\/code> alongside <code>settings.viaSSACFG: true<\/code> in Standard JSON input. Both configurations implicitly require the IR pipeline. <\/p>\n<p>Although the codegen is rigorously tested against the complete external-contract semantic test suite on every pull request, it is not yet set as the default for IR compilation. Before promotion to default status, the development team intends to subject the backend to extensive review, automated fuzzing, and external security audits. In accordance with the new experimental policy, only major architectural adjustments affecting the SSA CFG codegen will be explicitly documented in subsequent changelogs.<\/p>\n<h3>Deprecation Warnings for Upcoming 0.9.0 Keywords<\/h3>\n<p>Continuing the deprecation roadmap initiated in version 0.8.31, the 0.8.35 release introduces a fresh batch of warnings targeting identifiers that are scheduled to be promoted to reserved keywords in the major 0.9.0 release. While earlier deprecation phases focused primarily on removing obsolete features, the current batch is centered on reserving specific vocabulary names.<\/p>\n<p>Smart contract 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 trigger compiler warnings. Within standalone or inline Yul assembly blocks, the identifier <code>leave<\/code> will transition into 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 become reserved Yul identifiers. Many of these additions represent established Yul builtins that were previously unreserved due to the extended duration of the 0.8.x release cycle, which necessitated holding compatibility rules until the arrival of version 0.9.0.<\/p>\n<p>These notifications are issued strictly as warnings rather than fatal errors, ensuring that existing codebases continue to compile successfully. This approach provides developers with a structured transition window to safely refactor and rename affected declarations before version 0.9.0 converts the warnings into strict compilation errors.<\/p>\n<h3>Revert Strings Strip and Custom Errors<\/h3>\n<p>A notable bugfix in version 0.8.35 resolves an inconsistency regarding the behavior of the <code>--revert-strings strip<\/code> optimization option when interacting with custom errors. The <code>strip<\/code> flag, or <code>revertStrings: \"strip\"<\/code> in Standard JSON, is utilized to reduce deployed bytecode size and save gas by removing traditional revert reason strings from compiled contracts. <\/p>\n<p>The introduction of custom errors via <code>require(condition, CustomError(...))<\/code> created an architectural complication because custom errors encode structured data rather than simple diagnostic strings. Prior to version 0.8.35, the IR compilation pipeline inadvertently stripped the custom error arguments of <code>require<\/code> statements alongside standard strings, resulting in failed transactions reverting with empty error data instead of the properly encoded custom error payload. Because the legacy evmasm pipeline did not exhibit this behavior, a pipeline discrepancy existed. The development team addressed the issue by preserving the structured custom error data, ensuring consistent behavior across compilation pipelines. This fix applies specifically to <code>require<\/code> statements utilizing custom errors within the IR pipeline and has been active since <code>require(bool, error)<\/code> was originally released in version 0.8.26.<\/p>\n<h3>Ethdebug Output Reorganization<\/h3>\n<p>The release also restructures the integration of the ethdebug output format to provide greater granularity and align its behavior with other compiler outputs. The former <code>--ethdebug<\/code> and <code>--ethdebug-runtime<\/code> command-line flags have been replaced by four distinct options: <code>--ethdebug-resources<\/code>, <code>--ethdebug-compilation<\/code>, <code>--ethdebug-program<\/code>, and <code>--ethdebug-program-runtime<\/code>, with corresponding structural keys introduced for Standard JSON inputs. <\/p>\n<p>Under the updated structure, requesting ethdebug outputs no longer forces the compiler to execute a full binary compilation pass. Furthermore, ethdebug generation remains classified as experimental and is now properly governed by the top-level <code>--experimental<\/code> master toggle alongside other experimental features.<\/p>\n<h2>How to Install and Upgrade<\/h2>\n<p>Developers wishing to adopt the latest iteration of the Solidity Compiler can access comprehensive installation guidelines via the official documentation portal. Binary releases and release notes are hosted directly on the project&#8217;s GitHub repository. <\/p>\n<p>For developers compiling the software directly from source, the development team strongly advises against using the generic source code archives automatically generated by GitHub. Instead, builds should be performed using the dedicated <code>solidity_0.8.35.tar.gz<\/code> source tarball or by checking out the tagged <code>v0.8.35<\/code> commit via git to ensure proper dependency management and version verification.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The development team behind the Solidity programming language has officially announced the release of Solidity Compiler version 0.8.35. This latest version introduces a powerful new compile-time builtin designed to streamline upgradeable smart contract architectures, formalizes the management and gating of experimental features, rolls out an early experimental Static Single-Assignment Control-Flow Graph code generator to tackle<\/p>\n","protected":false},"author":9,"featured_media":5287,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[366],"tags":[401,1555,1184,2624,2313,1628,2014,5,400,402,1431,908],"class_list":["post-5288","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-smart-contract-auditing","tag-auditing","tag-backend","tag-compiler","tag-deprecations","tag-experimental","tag-native","tag-released","tag-security","tag-smart-contracts","tag-solidity","tag-support","tag-upcoming"],"_links":{"self":[{"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/posts\/5288","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5288"}],"version-history":[{"count":0,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/posts\/5288\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=\/wp\/v2\/media\/5287"}],"wp:attachment":[{"href":"https:\/\/wyominginvest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wyominginvest.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}