@xnetx/tinyc-native-x86_64-linux-gnu 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -0
- package/README.zh-CN.md +36 -0
- package/package.json +4 -2
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @xnetx/tinyc-native-x86_64-linux-gnu
|
|
2
|
+
|
|
3
|
+
**English** | [简体中文](README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
Native toolchain package for the [`@xnetx/tinyc`](https://www.npmjs.com/package/@xnetx/tinyc)
|
|
6
|
+
Node.js package, for hosts running **Linux on x86_64 (glibc)** (host triple
|
|
7
|
+
`x86_64-linux-gnu`).
|
|
8
|
+
|
|
9
|
+
`@xnetx/tinyc` embeds the TinyC (TCC) compiler in Node.js. This subpackage
|
|
10
|
+
carries the host-specific half of that distribution: the dual-form
|
|
11
|
+
compiler binaries — each one is both the `tcc` command-line executable
|
|
12
|
+
and a library exporting the libtcc `tcc_*` API — and the bundled
|
|
13
|
+
headers and libraries (sysroots) for every target this host builds
|
|
14
|
+
for:
|
|
15
|
+
|
|
16
|
+
- `aarch64-linux-android`
|
|
17
|
+
- `aarch64-linux-gnu`
|
|
18
|
+
- `riscv64-linux-gnu`
|
|
19
|
+
- `x86_64-linux-android`
|
|
20
|
+
- `x86_64-linux-gnu` (this host)
|
|
21
|
+
- `x86_64-w64-mingw32`
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
You do not normally install this package directly. The main `@xnetx/tinyc`
|
|
26
|
+
package declares every platform subpackage in its
|
|
27
|
+
`optionalDependencies`, and npm installs the one whose `os` / `cpu`
|
|
28
|
+
fields match your machine; this package matches
|
|
29
|
+
`os: linux` / `cpu: x64`, so `npm install @xnetx/tinyc` brings
|
|
30
|
+
it in automatically on such a host.
|
|
31
|
+
|
|
32
|
+
To install it explicitly anyway:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
npm install @xnetx/tinyc-native-x86_64-linux-gnu
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Layout
|
|
39
|
+
|
|
40
|
+
- `natives/x86_64-linux-gnu/toolchain/<target>/tinyc` — dual-form compiler
|
|
41
|
+
binary: runs on this host, generates code for `<target>`.
|
|
42
|
+
- `sysroot/<target>/` — bundled headers (`include/`) and libraries
|
|
43
|
+
(`lib/`) for `<target>`.
|
|
44
|
+
- `packaging-manifest.json` — the host/target combinations and the
|
|
45
|
+
output formats this package carries.
|
|
46
|
+
|
|
47
|
+
## See also
|
|
48
|
+
|
|
49
|
+
- Main package: [`@xnetx/tinyc`](https://www.npmjs.com/package/@xnetx/tinyc)
|
|
50
|
+
- Repository: <https://github.com/xnetsc/tinyc-in-one>
|
|
51
|
+
- License: LGPL-2.1-or-later
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @xnetx/tinyc-native-x86_64-linux-gnu
|
|
2
|
+
|
|
3
|
+
[English](README.md) | **简体中文**
|
|
4
|
+
|
|
5
|
+
[`@xnetx/tinyc`](https://www.npmjs.com/package/@xnetx/tinyc)(Node.js 包)在本宿主上的原生工具链包,宿主为 **x86_64 Linux(glibc)**(宿主三元组 `x86_64-linux-gnu`)。
|
|
6
|
+
|
|
7
|
+
`@xnetx/tinyc` 把 TinyC(TCC)编译器嵌入 Node.js。本子包是其中与宿主相关的部分:双形态编译器本体——同一个文件既是 `tcc` 命令行可执行文件,也是导出 libtcc `tcc_*` API 的库——以及本宿主可编译的全部目标的头文件与库文件(sysroot):
|
|
8
|
+
|
|
9
|
+
- `aarch64-linux-android`
|
|
10
|
+
- `aarch64-linux-gnu`
|
|
11
|
+
- `riscv64-linux-gnu`
|
|
12
|
+
- `x86_64-linux-android`
|
|
13
|
+
- `x86_64-linux-gnu`(本宿主)
|
|
14
|
+
- `x86_64-w64-mingw32`
|
|
15
|
+
|
|
16
|
+
## 安装
|
|
17
|
+
|
|
18
|
+
通常不需要手动安装本包。主包 `@xnetx/tinyc` 把全部平台子包声明在 `optionalDependencies` 里,npm 按各子包的 `os` / `cpu` 字段自动装上与本机匹配的那一个;本包匹配 `os: linux` / `cpu: x64`,在这类宿主上 `npm install @xnetx/tinyc` 会自动带上它。
|
|
19
|
+
|
|
20
|
+
如需显式安装:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npm install @xnetx/tinyc-native-x86_64-linux-gnu
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 包内布局
|
|
27
|
+
|
|
28
|
+
- `natives/x86_64-linux-gnu/toolchain/<target>/tinyc`——双形态编译器本体:在本宿主上运行、为 `<target>` 生成代码。
|
|
29
|
+
- `sysroot/<target>/`——该目标的头文件(`include/`)与库文件(`lib/`)。
|
|
30
|
+
- `packaging-manifest.json`——本包携带的宿主/目标组合与各组合的产物格式。
|
|
31
|
+
|
|
32
|
+
## 相关链接
|
|
33
|
+
|
|
34
|
+
- 主包:[`@xnetx/tinyc`](https://www.npmjs.com/package/@xnetx/tinyc)
|
|
35
|
+
- 仓库:<https://github.com/xnetsc/tinyc-in-one>
|
|
36
|
+
- 许可证:LGPL-2.1-or-later
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xnetx/tinyc-native-x86_64-linux-gnu",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "TinyC native binaries for host x86_64-linux-gnu (dual-form TCC builds and target sysroots).",
|
|
5
5
|
"license": "LGPL-2.1-or-later",
|
|
6
6
|
"os": [
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"natives",
|
|
14
14
|
"sysroot",
|
|
15
|
-
"packaging-manifest.json"
|
|
15
|
+
"packaging-manifest.json",
|
|
16
|
+
"README.md",
|
|
17
|
+
"README.zh-CN.md"
|
|
16
18
|
]
|
|
17
19
|
}
|