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

Support for benchmarks #822

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

matthiasgoergens
Copy link
Collaborator

Extracted from #809 because we need the non-controversial parts for other benchmarks. That is anything but pub const MAX_NUM_VARIABLES: usize = 27;

self.public_io,
self.hints,
self.unsafe_ecall_nop
"Platform {{ rom: {:#x?}, prog_data: {prog_data}, stack: {:#x?}, heap: {:x?}, public_io: {:#x?}, hints: {:#x?}, unsafe_ecall_nop: {} }}",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hex is easier to read here (because we use round numbers, only when expressed in powers of 2), and it's also how we specify these numbers in our linker script etc.

@@ -45,6 +45,7 @@ pub struct EmulationResult {
pi: PublicValues<u32>,
}

// TODO(Matthias): handle hints properly.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is something to fix soon. But I don't know enough at the moment.

It's definitely broken in master, though.

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