Skip to content

Files

Latest commit

2a59ead · Apr 30, 2025

History

History
21 lines (16 loc) · 785 Bytes

Development.md

File metadata and controls

21 lines (16 loc) · 785 Bytes

Development

The platform abstraction layer enables running and debugging lua programs on the PC platform. This simplifies debugging process, since this project renders graphical user interface on the scrren, debugging with logs may only be seen with --debug option.

To prepare running on PC, you need luarocks installed on your computer. Following modules should be installed with luarocks:

  • luasystem, provides precise timing support, used to implement computer.uptime.
  • lcurses, used to implement gpu and term. You may need to patch this project if you use lua 5.4.
  • lpath, used to implement filesystem.

Once dependent modules are installed, you can run and debug via entry script pcrun.lua.

lua pcrun.lua <entry_file> <args...>