Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heroesofcode/swift-explorer
Desktop tool to quickly explore and analyze Swift Intermediate Representation (IR) generated by the LLVM compiler, and also generate assembly code.
https://github.com/heroesofcode/swift-explorer
explorer macos swiftui tuist
Last synced: 4 months ago
JSON representation
Desktop tool to quickly explore and analyze Swift Intermediate Representation (IR) generated by the LLVM compiler, and also generate assembly code.
- Host: GitHub
- URL: https://github.com/heroesofcode/swift-explorer
- Owner: heroesofcode
- License: mit
- Created: 2024-06-22T06:10:38.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T14:08:10.000Z (4 months ago)
- Last Synced: 2024-10-23T16:09:35.222Z (4 months ago)
- Topics: explorer, macos, swiftui, tuist
- Language: Swift
- Homepage:
- Size: 11.6 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift Explorer
[](https://github.com/heroesofcode/swift-explorer/actions/workflows/CI.yml)
[](https://codecov.io/gh/heroesofcode/swift-explorer)


[](https://github.com/heroesofcode/swift-explorer/blob/main/LICENSE)
Desktop tool to quickly explore and analyze Swift Intermediate Representation (IR) generated by the LLVM compiler, and also generate assembly code.
## Features
- Deep Code Understanding: Developers can see how Swift code is transformed into both LLVM IR and assembly code, helping them better understand optimization and low-level behavior.
- Advanced Debugging: Viewing LLVM IR and assembly can help identify performance issues or hard-to-trace bugs in source code.
- Education and Learning: A valuable educational tool for learning about compilers and how different language constructs translate into intermediate representation and assembly.
- Optimization: Helps identify and optimize code snippets that are not compiling efficiently by providing insights from both LLVM IR and assembly.
- Comparative Analysis: Allows you to compare how different approaches or code versions generate different IR and assembly code, facilitating the choice of best coding practices.
- IA Gemini: You can see how to improve your code and compare LVVM and Assembly with the help of Gemini.> [!IMPORTANT]
> To review the details through Gemini, you must generate an API Key through this [link](https://aistudio.google.com/app/apikey).### Optimization flags
- `Onone:` Compile without any optimization.
- `Osize:` Compile with optimizations and target small code size.
- `Ounchecked:` Compile with optimizations and remove runtime safety checks.
- `O:` Compile with optimizations.## Installing
Download the dmg - [click here](https://github.com/heroesofcode/swift-explorer/releases/download/1.7.0/SwiftExplorer.dmg)
## Contributing
Please see the [documentation](https://github.com/heroesofcode/swift-explorer/blob/main/CONTRIBUTING.md)
## Run the project
Install [mise](https://mise.jdx.dev/)
```sh
mise install
```Generate `SwiftExplorer.xcworkspace` with [Tuist](https://tuist.io/)
```
tuist install
tuist generate
```## Inspiration
This project was inspired by [kotlin-explorer](https://github.com/romainguy/kotlin-explorer) developed by [Romain Guy](https://github.com/romainguy).
If you have any questions about the kotlin-explorer tool, I recommend you watch the talk [Practical Optimizations - Romain Guy](https://www.youtube.com/watch?v=5cxw_fdpnoA&list=PLn7H9CUCuXAtxPltq2mEHc_Wbgckrd4B-)
## License
swift-explorer is released under the MIT license. See [LICENSE](https://github.com/heroesofcode/swift-explorer/blob/main/LICENSE) for details.