Skip to content

Generating code for the ceval loop/switch #5

Closed
@gvanrossum

Description

@gvanrossum

I'm collecting ideas for discussion, and this is the first one.

@markshannon Can you clear up any misunderstandings in my summary of your idea here?

IIUC Mark's idea is that we'd replace the big switch (and perhaps the loop around it as well) with code generated by a script from "opcode definitions", a bit similar to the way Argument Clinic works. Not sure if the opcode definition would be inline as Argument Clinic does or if they would be C snippets contained in a separate file.

Somehow this would allow us to create a version of the main loop that doesn't have to check for tracing on every opcode.

Not sure of other benefits yet.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions