Open stevefan1999-personal opened 10 months ago
This is a mirror of tinycc.
@stevefan1999-personal Sounds good. Go for it dude. Fork the repo into another thing here on CChads (or your user) and you can start working
Sure thing
This is a mirror of tinycc.
I don't think this is exactly it because there are some changes not in mob branch. But I will try to push to both sides
We need it so that we can build TCC to make it run on WASM, or make it possible so that we can run TCC on Compiler Explorer.
I personally uses libtcc mainly for experimental headers and libraries embedding, so I can just compile libtcc.c and leverage the
ONE_SOURCE
feature. And then I instruct the C compiler to override the necessary functions.And then I implemented a tiny VFS wrapper:
This one worked out pretty well, but I think this is very hacky, and there is a lack of write support. Specifically, if we want to run this on Godbolt, we need to capture the output executable, but the current implementation of TCC writes directly to a file descriptor. Instead, we should have a dynamic stream API that supports byte stream or file stream.