Projetos
Ver no GitHub
maierfelix/mini-c
Sobre
C to WebAssembly compiler
Linguagens e ambientes de execuçãoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Originalmini-c
Description:
This is an experimental C compiler which compiles into WebAssembly. It's currently written in plain JavaScript but will be rewritten in C (and get self-hosted) as soon as the compiler has enough features to do so.
API:
Compiling a source file:
compile(src: String, imports: Object, sync: Boolean)
compile(`
int main(int a, int b) {
return (a + b);
};
`, {}, false);
Building
cd node
node index
This generates bin/dist.js
Testing
You can either run the tests like below or using the html version
cd node
node test
Explore projetos relacionados
Carregando…