tinyc-web 0.0.0-stage → 0.1.0

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/package.json CHANGED
@@ -1,6 +1 @@
1
- {
2
- "name": "tinyc-web",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {"browser":"./index.mjs","description":"TinyC (TCC) in the browser: the compiler built to WebAssembly, one module per code generation target (wasm32-wasi by default), with a JS glue layer, a virtual filesystem and a Web Worker interface.","exports":{".":"./index.mjs","./package.json":"./package.json","./sysroot-manifest":"./sysroot-manifest.json","./sysroot-manifests/*":"./sysroot-manifests/*","./worker":"./worker.mjs"},"files":["index.mjs","vfs-store.mjs","tinyc-web.js","worker.mjs","sysroot-manifest.json","sysroot-manifests","tcc-*.mjs","tcc-*.wasm"],"keywords":["tcc","tinycc","compiler","wasm","webassembly","browser","cross-compiler"],"license":"LGPL-2.1-or-later","main":"./index.mjs","module":"./index.mjs","name":"tinyc-web","scripts":{"build":"./build.sh","build:web":"node build-web-bundle.mjs","test":"node --test test.mjs","test:web":"node --test test-web-bundle.mjs"},"type":"module","version":"0.1.0"}
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "tinyc-sysroot",
3
+ "version": 1,
4
+ "target": "wasm32-wasi",
5
+ "binPath": "/sysroot/bin/tinyc",
6
+ "includeDir": "/sysroot/include",
7
+ "includeFiles": [
8
+ {
9
+ "path": "/sysroot/include/float.h",
10
+ "source": "include/float.h"
11
+ },
12
+ {
13
+ "path": "/sysroot/include/stdalign.h",
14
+ "source": "include/stdalign.h"
15
+ },
16
+ {
17
+ "path": "/sysroot/include/stdarg.h",
18
+ "source": "include/stdarg.h"
19
+ },
20
+ {
21
+ "path": "/sysroot/include/stdatomic.h",
22
+ "source": "include/stdatomic.h"
23
+ },
24
+ {
25
+ "path": "/sysroot/include/stdbool.h",
26
+ "source": "include/stdbool.h"
27
+ },
28
+ {
29
+ "path": "/sysroot/include/stddef.h",
30
+ "source": "include/stddef.h"
31
+ },
32
+ {
33
+ "path": "/sysroot/include/stdnoreturn.h",
34
+ "source": "include/stdnoreturn.h"
35
+ },
36
+ {
37
+ "path": "/sysroot/include/tccdefs.h",
38
+ "source": "include/tccdefs.h"
39
+ },
40
+ {
41
+ "path": "/sysroot/include/tgmath.h",
42
+ "source": "include/tgmath.h"
43
+ },
44
+ {
45
+ "path": "/sysroot/include/varargs.h",
46
+ "source": "include/varargs.h"
47
+ },
48
+ {
49
+ "path": "/sysroot/include/tcclib.h",
50
+ "source": "tcclib.h"
51
+ }
52
+ ],
53
+ "libDir": "/sysroot/lib",
54
+ "libFiles": [
55
+ {
56
+ "binary": true,
57
+ "path": "/sysroot/lib/libtcc1.a",
58
+ "source": "lib/wasm32-wasi/libtcc1.a"
59
+ }
60
+ ],
61
+ "outputs": {
62
+ "module": {
63
+ "format": "WebAssembly",
64
+ "ext": ".wasm"
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "tinyc-sysroot",
3
+ "version": 1,
4
+ "target": "aarch64-linux-android",
5
+ "binPath": "/sysroot/bin/tinyc",
6
+ "includeDir": "/sysroot/include",
7
+ "includeFiles": [
8
+ {
9
+ "path": "/sysroot/include/float.h",
10
+ "source": "include/float.h"
11
+ },
12
+ {
13
+ "path": "/sysroot/include/stdalign.h",
14
+ "source": "include/stdalign.h"
15
+ },
16
+ {
17
+ "path": "/sysroot/include/stdarg.h",
18
+ "source": "include/stdarg.h"
19
+ },
20
+ {
21
+ "path": "/sysroot/include/stdatomic.h",
22
+ "source": "include/stdatomic.h"
23
+ },
24
+ {
25
+ "path": "/sysroot/include/stdbool.h",
26
+ "source": "include/stdbool.h"
27
+ },
28
+ {
29
+ "path": "/sysroot/include/stddef.h",
30
+ "source": "include/stddef.h"
31
+ },
32
+ {
33
+ "path": "/sysroot/include/stdnoreturn.h",
34
+ "source": "include/stdnoreturn.h"
35
+ },
36
+ {
37
+ "path": "/sysroot/include/tccdefs.h",
38
+ "source": "include/tccdefs.h"
39
+ },
40
+ {
41
+ "path": "/sysroot/include/tgmath.h",
42
+ "source": "include/tgmath.h"
43
+ },
44
+ {
45
+ "path": "/sysroot/include/varargs.h",
46
+ "source": "include/varargs.h"
47
+ },
48
+ {
49
+ "path": "/sysroot/include/tcclib.h",
50
+ "source": "tcclib.h"
51
+ }
52
+ ],
53
+ "libDir": "/sysroot/lib",
54
+ "libFiles": [
55
+ {
56
+ "binary": true,
57
+ "path": "/sysroot/lib/libtcc1.a",
58
+ "source": "lib/aarch64-linux-android/libtcc1.a"
59
+ }
60
+ ],
61
+ "outputs": {
62
+ "exe": {
63
+ "format": "ELF executable",
64
+ "ext": ""
65
+ },
66
+ "obj": {
67
+ "format": "ELF relocatable",
68
+ "ext": ".o"
69
+ },
70
+ "shared": {
71
+ "format": "ELF shared object",
72
+ "ext": ".so"
73
+ },
74
+ "ar": {
75
+ "format": "ar archive",
76
+ "ext": ".a"
77
+ }
78
+ },
79
+ "libc": "bionic",
80
+ "androidApi": 30,
81
+ "dynamicLinker": "/system/bin/linker64"
82
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "tinyc-sysroot",
3
+ "version": 1,
4
+ "target": "aarch64-linux-gnu",
5
+ "binPath": "/sysroot/bin/tinyc",
6
+ "includeDir": "/sysroot/include",
7
+ "includeFiles": [
8
+ {
9
+ "path": "/sysroot/include/float.h",
10
+ "source": "include/float.h"
11
+ },
12
+ {
13
+ "path": "/sysroot/include/stdalign.h",
14
+ "source": "include/stdalign.h"
15
+ },
16
+ {
17
+ "path": "/sysroot/include/stdarg.h",
18
+ "source": "include/stdarg.h"
19
+ },
20
+ {
21
+ "path": "/sysroot/include/stdatomic.h",
22
+ "source": "include/stdatomic.h"
23
+ },
24
+ {
25
+ "path": "/sysroot/include/stdbool.h",
26
+ "source": "include/stdbool.h"
27
+ },
28
+ {
29
+ "path": "/sysroot/include/stddef.h",
30
+ "source": "include/stddef.h"
31
+ },
32
+ {
33
+ "path": "/sysroot/include/stdnoreturn.h",
34
+ "source": "include/stdnoreturn.h"
35
+ },
36
+ {
37
+ "path": "/sysroot/include/tccdefs.h",
38
+ "source": "include/tccdefs.h"
39
+ },
40
+ {
41
+ "path": "/sysroot/include/tgmath.h",
42
+ "source": "include/tgmath.h"
43
+ },
44
+ {
45
+ "path": "/sysroot/include/varargs.h",
46
+ "source": "include/varargs.h"
47
+ },
48
+ {
49
+ "path": "/sysroot/include/tcclib.h",
50
+ "source": "tcclib.h"
51
+ }
52
+ ],
53
+ "libDir": "/sysroot/lib",
54
+ "libFiles": [
55
+ {
56
+ "binary": true,
57
+ "path": "/sysroot/lib/libtcc1.a",
58
+ "source": "lib/aarch64-linux-gnu/libtcc1.a"
59
+ }
60
+ ],
61
+ "outputs": {
62
+ "exe": {
63
+ "format": "ELF executable",
64
+ "ext": ""
65
+ },
66
+ "obj": {
67
+ "format": "ELF relocatable",
68
+ "ext": ".o"
69
+ },
70
+ "shared": {
71
+ "format": "ELF shared object",
72
+ "ext": ".so"
73
+ },
74
+ "ar": {
75
+ "format": "ar archive",
76
+ "ext": ".a"
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "tinyc-sysroot",
3
+ "version": 1,
4
+ "target": "arm64-apple-darwin",
5
+ "binPath": "/sysroot/bin/tinyc",
6
+ "includeDir": "/sysroot/include",
7
+ "includeFiles": [
8
+ {
9
+ "path": "/sysroot/include/float.h",
10
+ "source": "include/float.h"
11
+ },
12
+ {
13
+ "path": "/sysroot/include/stdalign.h",
14
+ "source": "include/stdalign.h"
15
+ },
16
+ {
17
+ "path": "/sysroot/include/stdarg.h",
18
+ "source": "include/stdarg.h"
19
+ },
20
+ {
21
+ "path": "/sysroot/include/stdatomic.h",
22
+ "source": "include/stdatomic.h"
23
+ },
24
+ {
25
+ "path": "/sysroot/include/stdbool.h",
26
+ "source": "include/stdbool.h"
27
+ },
28
+ {
29
+ "path": "/sysroot/include/stddef.h",
30
+ "source": "include/stddef.h"
31
+ },
32
+ {
33
+ "path": "/sysroot/include/stdnoreturn.h",
34
+ "source": "include/stdnoreturn.h"
35
+ },
36
+ {
37
+ "path": "/sysroot/include/tccdefs.h",
38
+ "source": "include/tccdefs.h"
39
+ },
40
+ {
41
+ "path": "/sysroot/include/tgmath.h",
42
+ "source": "include/tgmath.h"
43
+ },
44
+ {
45
+ "path": "/sysroot/include/varargs.h",
46
+ "source": "include/varargs.h"
47
+ },
48
+ {
49
+ "path": "/sysroot/include/tcclib.h",
50
+ "source": "tcclib.h"
51
+ }
52
+ ],
53
+ "libDir": "/sysroot/lib",
54
+ "libFiles": [
55
+ {
56
+ "binary": true,
57
+ "path": "/sysroot/lib/libtcc1.a",
58
+ "source": "lib/arm64-apple-darwin/libtcc1.a"
59
+ }
60
+ ],
61
+ "outputs": {
62
+ "exe": {
63
+ "format": "Mach-O executable",
64
+ "ext": ""
65
+ },
66
+ "obj": {
67
+ "format": "Mach-O object",
68
+ "ext": ".o"
69
+ },
70
+ "shared": {
71
+ "format": "Mach-O dylib",
72
+ "ext": ".dylib"
73
+ },
74
+ "ar": {
75
+ "format": "ar archive",
76
+ "ext": ".a"
77
+ }
78
+ },
79
+ "systemHeaders": "user-sdk"
80
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "tinyc-sysroot",
3
+ "version": 1,
4
+ "target": "riscv64-linux-gnu",
5
+ "binPath": "/sysroot/bin/tinyc",
6
+ "includeDir": "/sysroot/include",
7
+ "includeFiles": [
8
+ {
9
+ "path": "/sysroot/include/float.h",
10
+ "source": "include/float.h"
11
+ },
12
+ {
13
+ "path": "/sysroot/include/stdalign.h",
14
+ "source": "include/stdalign.h"
15
+ },
16
+ {
17
+ "path": "/sysroot/include/stdarg.h",
18
+ "source": "include/stdarg.h"
19
+ },
20
+ {
21
+ "path": "/sysroot/include/stdatomic.h",
22
+ "source": "include/stdatomic.h"
23
+ },
24
+ {
25
+ "path": "/sysroot/include/stdbool.h",
26
+ "source": "include/stdbool.h"
27
+ },
28
+ {
29
+ "path": "/sysroot/include/stddef.h",
30
+ "source": "include/stddef.h"
31
+ },
32
+ {
33
+ "path": "/sysroot/include/stdnoreturn.h",
34
+ "source": "include/stdnoreturn.h"
35
+ },
36
+ {
37
+ "path": "/sysroot/include/tccdefs.h",
38
+ "source": "include/tccdefs.h"
39
+ },
40
+ {
41
+ "path": "/sysroot/include/tgmath.h",
42
+ "source": "include/tgmath.h"
43
+ },
44
+ {
45
+ "path": "/sysroot/include/varargs.h",
46
+ "source": "include/varargs.h"
47
+ },
48
+ {
49
+ "path": "/sysroot/include/tcclib.h",
50
+ "source": "tcclib.h"
51
+ }
52
+ ],
53
+ "libDir": "/sysroot/lib",
54
+ "libFiles": [
55
+ {
56
+ "binary": true,
57
+ "path": "/sysroot/lib/libtcc1.a",
58
+ "source": "lib/riscv64-linux-gnu/libtcc1.a"
59
+ }
60
+ ],
61
+ "outputs": {
62
+ "exe": {
63
+ "format": "ELF executable",
64
+ "ext": ""
65
+ },
66
+ "obj": {
67
+ "format": "ELF relocatable",
68
+ "ext": ".o"
69
+ },
70
+ "shared": {
71
+ "format": "ELF shared object",
72
+ "ext": ".so"
73
+ },
74
+ "ar": {
75
+ "format": "ar archive",
76
+ "ext": ".a"
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "tinyc-sysroot",
3
+ "version": 1,
4
+ "target": "wasm32-wasi",
5
+ "binPath": "/sysroot/bin/tinyc",
6
+ "includeDir": "/sysroot/include",
7
+ "includeFiles": [
8
+ {
9
+ "path": "/sysroot/include/float.h",
10
+ "source": "include/float.h"
11
+ },
12
+ {
13
+ "path": "/sysroot/include/stdalign.h",
14
+ "source": "include/stdalign.h"
15
+ },
16
+ {
17
+ "path": "/sysroot/include/stdarg.h",
18
+ "source": "include/stdarg.h"
19
+ },
20
+ {
21
+ "path": "/sysroot/include/stdatomic.h",
22
+ "source": "include/stdatomic.h"
23
+ },
24
+ {
25
+ "path": "/sysroot/include/stdbool.h",
26
+ "source": "include/stdbool.h"
27
+ },
28
+ {
29
+ "path": "/sysroot/include/stddef.h",
30
+ "source": "include/stddef.h"
31
+ },
32
+ {
33
+ "path": "/sysroot/include/stdnoreturn.h",
34
+ "source": "include/stdnoreturn.h"
35
+ },
36
+ {
37
+ "path": "/sysroot/include/tccdefs.h",
38
+ "source": "include/tccdefs.h"
39
+ },
40
+ {
41
+ "path": "/sysroot/include/tgmath.h",
42
+ "source": "include/tgmath.h"
43
+ },
44
+ {
45
+ "path": "/sysroot/include/varargs.h",
46
+ "source": "include/varargs.h"
47
+ },
48
+ {
49
+ "path": "/sysroot/include/tcclib.h",
50
+ "source": "tcclib.h"
51
+ }
52
+ ],
53
+ "libDir": "/sysroot/lib",
54
+ "libFiles": [
55
+ {
56
+ "binary": true,
57
+ "path": "/sysroot/lib/libtcc1.a",
58
+ "source": "lib/wasm32-wasi/libtcc1.a"
59
+ }
60
+ ],
61
+ "outputs": {
62
+ "module": {
63
+ "format": "WebAssembly",
64
+ "ext": ".wasm"
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "tinyc-sysroot",
3
+ "version": 1,
4
+ "target": "x86_64-apple-darwin",
5
+ "binPath": "/sysroot/bin/tinyc",
6
+ "includeDir": "/sysroot/include",
7
+ "includeFiles": [
8
+ {
9
+ "path": "/sysroot/include/float.h",
10
+ "source": "include/float.h"
11
+ },
12
+ {
13
+ "path": "/sysroot/include/stdalign.h",
14
+ "source": "include/stdalign.h"
15
+ },
16
+ {
17
+ "path": "/sysroot/include/stdarg.h",
18
+ "source": "include/stdarg.h"
19
+ },
20
+ {
21
+ "path": "/sysroot/include/stdatomic.h",
22
+ "source": "include/stdatomic.h"
23
+ },
24
+ {
25
+ "path": "/sysroot/include/stdbool.h",
26
+ "source": "include/stdbool.h"
27
+ },
28
+ {
29
+ "path": "/sysroot/include/stddef.h",
30
+ "source": "include/stddef.h"
31
+ },
32
+ {
33
+ "path": "/sysroot/include/stdnoreturn.h",
34
+ "source": "include/stdnoreturn.h"
35
+ },
36
+ {
37
+ "path": "/sysroot/include/tccdefs.h",
38
+ "source": "include/tccdefs.h"
39
+ },
40
+ {
41
+ "path": "/sysroot/include/tgmath.h",
42
+ "source": "include/tgmath.h"
43
+ },
44
+ {
45
+ "path": "/sysroot/include/varargs.h",
46
+ "source": "include/varargs.h"
47
+ },
48
+ {
49
+ "path": "/sysroot/include/tcclib.h",
50
+ "source": "tcclib.h"
51
+ }
52
+ ],
53
+ "libDir": "/sysroot/lib",
54
+ "libFiles": [
55
+ {
56
+ "binary": true,
57
+ "path": "/sysroot/lib/libtcc1.a",
58
+ "source": "lib/x86_64-apple-darwin/libtcc1.a"
59
+ }
60
+ ],
61
+ "outputs": {
62
+ "exe": {
63
+ "format": "Mach-O executable",
64
+ "ext": ""
65
+ },
66
+ "obj": {
67
+ "format": "Mach-O object",
68
+ "ext": ".o"
69
+ },
70
+ "shared": {
71
+ "format": "Mach-O dylib",
72
+ "ext": ".dylib"
73
+ },
74
+ "ar": {
75
+ "format": "ar archive",
76
+ "ext": ".a"
77
+ }
78
+ },
79
+ "systemHeaders": "user-sdk"
80
+ }
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "tinyc-sysroot",
3
+ "version": 1,
4
+ "target": "x86_64-linux-android",
5
+ "binPath": "/sysroot/bin/tinyc",
6
+ "includeDir": "/sysroot/include",
7
+ "includeFiles": [
8
+ {
9
+ "path": "/sysroot/include/float.h",
10
+ "source": "include/float.h"
11
+ },
12
+ {
13
+ "path": "/sysroot/include/stdalign.h",
14
+ "source": "include/stdalign.h"
15
+ },
16
+ {
17
+ "path": "/sysroot/include/stdarg.h",
18
+ "source": "include/stdarg.h"
19
+ },
20
+ {
21
+ "path": "/sysroot/include/stdatomic.h",
22
+ "source": "include/stdatomic.h"
23
+ },
24
+ {
25
+ "path": "/sysroot/include/stdbool.h",
26
+ "source": "include/stdbool.h"
27
+ },
28
+ {
29
+ "path": "/sysroot/include/stddef.h",
30
+ "source": "include/stddef.h"
31
+ },
32
+ {
33
+ "path": "/sysroot/include/stdnoreturn.h",
34
+ "source": "include/stdnoreturn.h"
35
+ },
36
+ {
37
+ "path": "/sysroot/include/tccdefs.h",
38
+ "source": "include/tccdefs.h"
39
+ },
40
+ {
41
+ "path": "/sysroot/include/tgmath.h",
42
+ "source": "include/tgmath.h"
43
+ },
44
+ {
45
+ "path": "/sysroot/include/varargs.h",
46
+ "source": "include/varargs.h"
47
+ },
48
+ {
49
+ "path": "/sysroot/include/tcclib.h",
50
+ "source": "tcclib.h"
51
+ }
52
+ ],
53
+ "libDir": "/sysroot/lib",
54
+ "libFiles": [
55
+ {
56
+ "binary": true,
57
+ "path": "/sysroot/lib/libtcc1.a",
58
+ "source": "lib/x86_64-linux-android/libtcc1.a"
59
+ }
60
+ ],
61
+ "outputs": {
62
+ "exe": {
63
+ "format": "ELF executable",
64
+ "ext": ""
65
+ },
66
+ "obj": {
67
+ "format": "ELF relocatable",
68
+ "ext": ".o"
69
+ },
70
+ "shared": {
71
+ "format": "ELF shared object",
72
+ "ext": ".so"
73
+ },
74
+ "ar": {
75
+ "format": "ar archive",
76
+ "ext": ".a"
77
+ }
78
+ },
79
+ "libc": "bionic",
80
+ "androidApi": 30,
81
+ "dynamicLinker": "/system/bin/linker64"
82
+ }