spice
所属分类:collect
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2023-07-14 17:55:42
上 传 者:
sh-1993
说明: 香料编程语言
(Spice Programming Language)
文件列表:
.clang-format (49, 2024-01-09)
.goreleaser.yml (4081, 2024-01-09)
.run/ (0, 2024-01-09)
.run/spice.run.xml (939, 2024-01-09)
.run/spicetest.run.xml (839, 2024-01-09)
CMakeLists.txt (2031, 2024-01-09)
CODE_OF_CONDUCT.md (3514, 2024-01-09)
CONTRIBUTING.md (1232, 2024-01-09)
Dockerfile (434, 2024-01-09)
LICENSE (1072, 2024-01-09)
Options.cmake (4988, 2024-01-09)
SECURITY.md (738, 2024-01-09)
build.bat (359, 2024-01-09)
build.sh (330, 2024-01-09)
coverage.bat (117, 2024-01-09)
coverage.sh (125, 2024-01-09)
dev-setup.bat (1703, 2024-01-09)
dev-setup.sh (1483, 2024-01-09)
docs/ (0, 2024-01-09)
docs/docs/ (0, 2024-01-09)
docs/docs/CNAME (17, 2024-01-09)
docs/docs/cli/ (0, 2024-01-09)
docs/docs/cli/build.md (3719, 2024-01-09)
docs/docs/cli/install.md (2550, 2024-01-09)
... ...
Spice Programming Language
Compiler and standard library for the Spice programming language.
---
This is the home repo of the Spice programming language.
Spice is a compiled language which sets a focus on performance and practicality. It is considered as a systems language, which
means it is especially useful to write cli tools or device drivers.
Spice supports cross-compilation to all target platforms, listed [below](https://github.com/spicelang/spice/blob/master/#available-target-platforms).
If you like Spice, please consider a GitHub star!
| :warning: | The compiler of the Spice language is still in alpha stages and under development. Please note that code may behave differently in the future or even break due to the volatility of the compiler. |
|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
## Documentation
Please visit the documentation at [spicelang.com](https://github.com/spicelang/spice/blob/master/https://www.spicelang.com).
We also have a Spice playground where you can try things: [play.spicelang.com](https://github.com/spicelang/spice/blob/master/https://play.spicelang.com)
Code coverage can be found at [coverage.spicelang.com](https://github.com/spicelang/spice/blob/master/http://coverage.spicelang.com).
## Supported host systems & file downloads
There are downloadable packages available for all supported platforms:
| **Platform** | **amd64** | **arm64** |
|-----------------------------|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
| **Alpine (apk)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_amd64.apk) | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_arm64.apk) |
| **CentOS (rpm)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_amd64.rpm) | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_arm64.rpm) |
| **Debian (deb)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_amd64.deb) | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_arm64.deb) |
| **Fedora (rpm)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_amd64.rpm) | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_arm64.rpm) |
| **Raspbian (deb)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_amd64.deb) | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_arm64.deb) |
| **Ubuntu (deb)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_amd64.deb) | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_arm64.deb) |
| **Windows Installer (msi)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_x64_setup.msi) | - |
| **Windows Portable (zip)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_windows_amd64.zip) | - |
| **MacOS / Darwin (tar.gz)** | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_darwin_amd64.tar.gz) | [download](https://github.com/spicelang/spice/blob/master/https://github.com/spicelang/spice/releases/latest/download/spice_darwin_arm64.tar.gz) |
## Setup guide for contributors
#### Clone the project
```sh
git clone https://github.com/spicelang/spice.git
cd spice
```
#### Setup dev environment
There is a batch/shell script called `dev-setup` to help you with that. It will do the following things:
- Make sure you have all dependencies
- Clone and build the required LLVM version to the `llvm` subdirectory
- Download all required third-party libs to the `lib` subdirectory
- Build Spice for the first time into the `bin` subdirectory
Use this command to run it:
```sh
# Linux
./dev-setup.sh
# Windows
.\dev-setup.bat
```
#### Re-build Spice
There is also a batch/shell script to rebuild Spice. Use the following command to run it:
```sh
# Linux
./build.sh
# Windows
.\build.bat
```
You can find the build output in the `bin` subdirectory.
## Available target platforms
Currently, Spice only offers stable support for linux/x86_64, linux/aarch64 and windows/x86_64.
But you can try to compile to the following architectures without any stability promises:
`aarch64`, `amdgpu`, `armv5`, `armv6`, `armv7`, `avr`, `bpf`, `hexagon`, `lanai`, `loongarch`, `mips`, `msp430`, `nvptx`,
`powerpc`, `riscv`, `sparc`, `systemz`, `ve`, `webassembly`, `x86`, `x86_64`, `xcore`
## Contribute to the project
If you want to contribute to this project, please ensure you comply with the [contribution guidelines](https://github.com/spicelang/spice/blob/master/./CONTRIBUTING.md).
ChilliBits 2021-2023
近期下载者:
相关文件:
收藏者: