quil-lang / quilc

The optimizing Quil compiler.
Apache License 2.0
454 stars 73 forks source link

Implement basic Quilc C API #789

Closed kartik-s closed 2 years ago

kartik-s commented 2 years ago

This PR resolves #788, providing a way to build a small subset of Quilc functionality into a shared library.

Notes

  1. Go to your SBCL source directory.
  2. Run sh make-shared-library.sh.
  3. Copy src/runtime/libsbcl.so into your library path, e.g. /usr/local/lib/.

Functions

Parsing/printing

Chip specifications

Compilation

Testing

kartik-s commented 2 years ago

Need quil-lang/sbcl-librarian#13 to be resolved to fix up C function names.

notmgsk commented 2 years ago

<3