forked from sellicott/tcc-riscv32
-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
67 lines (63 loc) · 2.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html style="font-family: sans-serif">
<head>
<title>TCC RISC-V Compiler: Compiled to WebAssembly with Zig Compiler</title>
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body style="background-color: lightgrey;">
<table>
<tr>
<td>
<p>
<h3>TCC RISC-V Compiler: <br>Compiled to WebAssembly <br>With Zig Compiler</h3>
<!-- Code Box for C Program -->
<textarea id="code" cols="40" rows="20" style="font-size: larger; padding: 10px">
int main(int argc, char *argv[]) {
printf("Hello, World!!\n");
return 0;
}
</textarea>
</p>
<p>
<!-- Compile Button -->
<button id="compile" type="button" style="font-size: larger; width: 100%; height: 70px" onclick="bootstrap()">Compile with TCC</button>
</p>
<p>
<h4>TCC Options</h4>
<!-- Compiler Options -->
<table>
<tr>
<td><input type="text" id="option0" size="10" onkeyup="read_options()" value="-c" /></td>
<td><input type="text" id="option1" size="10" onkeyup="read_options()" value="hello.c" /></td>
<td><input type="text" id="option2" size="10" onkeyup="read_options()" /></td>
<td><input type="text" id="option3" size="10" onkeyup="read_options()" /></td>
</tr>
<tr>
<td><input type="text" id="option4" size="10" onkeyup="read_options()" /></td>
<td><input type="text" id="option5" size="10" onkeyup="read_options()" /></td>
<td><input type="text" id="option6" size="10" onkeyup="read_options()" /></td>
<td><input type="text" id="option7" size="10" onkeyup="read_options()" /></td>
</tr>
</table>
</p>
<p>
<label id="options"></label>
</p>
<p>
<a target="_blank" href="https://lupyuen.github.io/nuttx-tinyemu/tcc/">Emulator for Apache NuttX RTOS</a>
</p>
</td>
<td>
<div id="term_wrap">
<div id="term_container">
</div>
<div id="term_bar">
</div>
</div>
</td>
</tr>
</table>
</body>
<script type="text/javascript" src="term.js"></script>
<script type="text/javascript" src="tcc.js"></script>
</html>