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

Compile Trilangle to C #26

Merged
merged 18 commits into from
Sep 28, 2023
Merged

Compile Trilangle to C #26

merged 18 commits into from
Sep 28, 2023

Conversation

bbrk24
Copy link
Owner

@bbrk24 bbrk24 commented Sep 27, 2023

No description provided.

src/compiler.cpp Outdated Show resolved Hide resolved
Comment on lines +132 to +135
case op::RND:
case op::GDT:
case op::GTM:
cerr << "Nondeterministic instructions are not yet supported for compiled programs." << endl;
Copy link
Owner Author

Choose a reason for hiding this comment

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

This should be doable with time() and rand(), but seeding the RNG is a problem

Copy link
Owner Author

Choose a reason for hiding this comment

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

time() doesn't provide sub-second precision however, so it might work for GDT but not GTM.

src/compiler/lightweight_stack.h Show resolved Hide resolved
src/disassembler.cpp Outdated Show resolved Hide resolved
src/input.hh Show resolved Hide resolved
@bbrk24 bbrk24 marked this pull request as ready for review September 27, 2023 20:59
@bbrk24
Copy link
Owner Author

bbrk24 commented Sep 27, 2023

Changelog

@bbrk24 bbrk24 merged commit bbbf0c5 into master Sep 28, 2023
4 checks passed
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.

1 participant