projects
/
watForth.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
webpush hookup
[watForth.git]
/
c
/
c2wat
1
#! /bin/bash
2
clang
-emit-llvm --target
=
wasm32
-O3 -S
$1
3
FNAME
=
${1%.c}
4
llc
${FNAME}
.ll
-march
=
wasm32
5
s2wasm
${FNAME}
.s
>
${FNAME}
.wast
6
wat-desugar
${FNAME}
.wast
>
${FNAME}
.wat