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.

29 lines
571 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. - do-while
  14. - continue
  15. - goto
  16. - actual functions
  17. - structs
  18. - enums
  19. Some of these features may be worked around using `_asm()`.