- 4

I need to make a C compilar in JavaScript. How should I do this?

I do web page in HTML, CSS, JavaScript and I dont know how I make C compiler written by JavaScript??

29th Jun 2021, 9:57 PM
Matej Grill
Matej Grill - avatar
1 Réponse
+ 3
One possible reason why this *may* not be easy is, a compiler needs read, write and delete access to file system during its work, especially to create obj files before continuing with linking process. Javascript by itself doesn't have such file system access for security reasons. I'm not a compiler author myself, but this is what I understood. This page may be worth reading https://www.quora.com/Which-language-has-been-used-to-develop-the-C-compiler
30th Jun 2021, 1:35 AM
Ipang