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

Known issues of the compiler #3

Open
7 tasks
alastairreid opened this issue Dec 19, 2024 · 0 comments
Open
7 tasks

Known issues of the compiler #3

alastairreid opened this issue Dec 19, 2024 · 0 comments

Comments

@alastairreid
Copy link

We know about the following limitations of the compiler

Missing features

  • No string operations are supported so the only strings you can use are string literals
  • The real type, real literals and real operations are not supported
  • Bitvectors are only supported if is is possible to determine the bitwidth based on how the function that uses it is used.
  • Runtime checks are not performed for array indexes and bitvector slices.
  • Integers are represented by a fixed bitwidth (usually 128 bits) which makes it possible that integers will overflow or wraparound.

Scope for improvement / optimization

  • Generated code often contains dead code such as local variables that are not used
  • Changing runtime library changes the types of imported/exported functions - this makes it hard to write code that works for any runtime library
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

No branches or pull requests

1 participant