captainarash / captcc Goto Github PK
View Code? Open in Web Editor NEWA tiny C compiler written purely in JavaScript.
License: BSD 3-Clause "New" or "Revised" License
A tiny C compiler written purely in JavaScript.
License: BSD 3-Clause "New" or "Revised" License
Nice approach! :-D I like how you have splitted each one of the steps in a different file and function :-) Maybe it could be converted to use Streams instead, but that's a different issue :-P
I was looking for a C compiler written in Javascript to be used on NodeOS, and maybe yours could be a good deal. What's the actual status of the project? Seems it's not possible to convert the assembly code to machine code yet, isn't it? Have you tried to use your compiler with external libraries (printf()
on stdlib and so...)? And run it as a Node.js executable? Having each stage isolated, have you though about adding a processor that generates wasm assembly code too? :-)
It is not producing working ASM code. Couldn't make it work with any gcc compiler. Needs refactoring...
It would be awsome to have WASM support in this project, to compile and run c completely locally in the browser, and it will be awesome for writing a plugin for cloud IDEs to run c locally, such as Eclipse Theia.
i try to start that project but it give me error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.