diff options
author | Guido van Rossum <guido@python.org> | 2022-11-06 17:40:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 17:40:47 (GMT) |
commit | 7dcd28eb41abeb29ddefd0a49fa9f7a9ebd61e16 (patch) | |
tree | 9d22898f492f9bdc544c1bed9a1d5e34b79924d3 /Misc | |
parent | ede6cb26153f106a11a462614fdda12691fc6463 (diff) | |
download | cpython-7dcd28eb41abeb29ddefd0a49fa9f7a9ebd61e16.zip cpython-7dcd28eb41abeb29ddefd0a49fa9f7a9ebd61e16.tar.gz cpython-7dcd28eb41abeb29ddefd0a49fa9f7a9ebd61e16.tar.bz2 |
GH-98831: Implement super-instruction generation (#99084)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Build/2022-10-28-22-24-26.gh-issue-98831.IXRCRX.rst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Misc/NEWS.d/next/Build/2022-10-28-22-24-26.gh-issue-98831.IXRCRX.rst b/Misc/NEWS.d/next/Build/2022-10-28-22-24-26.gh-issue-98831.IXRCRX.rst index db84a7f..c572f14 100644 --- a/Misc/NEWS.d/next/Build/2022-10-28-22-24-26.gh-issue-98831.IXRCRX.rst +++ b/Misc/NEWS.d/next/Build/2022-10-28-22-24-26.gh-issue-98831.IXRCRX.rst @@ -1 +1,9 @@ -We have new tooling, in ``Tools/cases_generator``, to generate the interpreter switch from a list of opcode definitions. +Add new tooling, in ``Tools/cases_generator``, +to generate the interpreter switch statement from a list of opcode definitions. +This only affects adding, modifying or removing instruction definitions. +The instruction definitions now live in ``Python/bytecodes.c``, +in the form of a `custom DSL (under development) +<https://github.com/faster-cpython/ideas/blob/main/3.12/interpreter_definition.md>`__. +The tooling reads this file and writes ``Python/generated_cases.c.h``, +which is then included by ``Python/ceval.c`` to provide most of the cases +of the main interpreter switch. |