Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instruction limit #1828

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Timmmm
Copy link

@Timmmm Timmmm commented Oct 4, 2024

Adds an optional --instructions=N CLI argument which will stop the simulation after N instructions.

This is useful for benchmarking and profiling and sometimes debugging.

Adds an optional --instructions=N CLI argument which will stop the simulation after N instructions.

This is useful for benchmarking and profiling and sometimes debugging.
@jerryz123
Copy link
Collaborator

I wonder if the desired behavior can be achieved through using the --debug-cmd flag, which lets you specify a file of interactive debug commands. Does setting the file to be

rs <some number of cycles>
q

achieve the same effect?

@Timmmm
Copy link
Author

Timmmm commented Oct 4, 2024

Doesn't seem to - it does stop the simulation but it just drops you into the REPL rather than exiting.

In any case it's a far less convenient and discoverable interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants