c3c
c3c copied to clipboard
Compiler for the C3 language
Asking for Visual Studio on Windows might be a common thing to do, but its awful in terms of user experience. Visual Studio is a bloated huge dependency to ask...
Not all of these should be available using dot syntax perhaps? [ ] shuffle (incl broadcast) [ ] blend (select) [x] pow [x] sin / cos [x] abs [x] log...
Currently `c3c` supports `none, mmx, sse, avx, avx512` levels only. But older CPUs doesn't support `avx512` (e.g. my CPU :smile:). I found https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/X86TargetParser.def file that may be useful. Possible solutions:...
I added an option to the compiler to emit headers for the entire project `--emit-c-headers`. The problem I ran into is clearly it's incomplete. I got part way. Currently I...
Digging though some example c++ memory map headers in https://github.com/mandreyel/mio/blob/master/include/mio we can find some function calls for memory mapping and unmapping. ```c struct mmap_context { char* data; int64_t length; int64_t...
I'm currently using this patch in my OS. It's bad, but it works. ```diff diff --git a/src/compiler/compiler.c b/src/compiler/compiler.c index 62e2cbf..9ba427b 100644 --- a/src/compiler/compiler.c +++ b/src/compiler/compiler.c @@ -414,14 +414,16 @@ void...
A few languages which natively support slices also support concatenation, although the concatenation operator's varies. EG: ```c uint[] some_array = {1,2,3}; uint[] another_array = {4,5,6}; //might consider using std::array::list as...
C3 needs some way to express inline asm. In GCC this is: ```c asm("... asm ..."); asm("... asm ...", , , , ); ```