You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
535 B

5 years ago
  1. # c2logic
  2. Compiles C code to Mindustry logic. Still in beta, so compiled output may not be fully optimized.
  3. # Usage
  4. `python3 -m c2logic filename -O optimization_level`
  5. where `filename` is a string and `optimization_level` is an integer.
  6. See [examples](./examples) for API sample usage.
  7. # Documentation
  8. See `include/mindustry.h` for API definitions.
  9. # Unsupported Features
  10. - drawing
  11. - getlink
  12. - memory cell read/write
  13. - actual functions
  14. - structs
  15. - enums
  16. Some of these features may be worked around using `asm()`.