-
-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
- Loading branch information
1 parent
ede6cb2
commit 7dcd28e
Showing
5 changed files
with
163 additions
and
138 deletions.
There are no files selected for viewing
10 changes: 9 additions & 1 deletion
10
Misc/NEWS.d/next/Build/2022-10-28-22-24-26.gh-issue-98831.IXRCRX.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.