Development tools

This commit is contained in:
xushiwei
2024-05-16 06:34:18 +08:00
parent 78b2f9b455
commit 638caa355c

View File

@@ -213,3 +213,19 @@ go install -v ./...
### on Windows ### on Windows
TODO TODO
## Development tools
* [pydump](chore/_xtool/pydump): It's the first program compiled by `llgo` (NOT `go`) in a production environment. It outputs symbol information (functions, variables, and constants) from a Python library in JSON format, preparing for the generation of corresponding packages in `llgo`.
* [llpyg](chore/llpyg): It is used to automatically convert Python libraries into Go packages that `llgo` can import. It depends on `pydump` to accomplish the task.
* [llgen](chore/llgen): It is used to compile Go packages into LLVM IR files (*.ll).
* [ssadump](chore/ssadump): It is a Go SSA builder and interpreter.
How do I generate these tools?
```sh
go install -v ./... # compile all tools except pydump
cd chore/_xtool
llgo install ./... # compile pydump
```