shecc icon indicating copy to clipboard operation
shecc copied to clipboard

A self-hosting and educational C optimizing compiler

Results 29 shecc issues
Sort by recently updated
recently updated
newest added

With the discussion in the pull request (#140) , we found that shecc cannot deal with macros containing assignment and compound assignment operators. Here are the examples: ```c #define MACRO1(variable,...

In the latest commit (cb34939), after using command `make distclean config ARCH=arm` then executes `make` to bootstrap, the process panicks about the corrupted `libc.inc` generated by `tools/inliner.c`. The generated corrupted...

While reviewing `ssa.c`, I came across the comment: ```c /* TODO: simplify with def-use chain */ ``` It made me wonder if the `compiler` already has a proper implementation of...

As noted in #151 , the current test suite only accepts tests where the final result is between 0 and 255 (a byte). This restriction makes it difficult to perform...

## Motivation * Fixed-size buffers such as `TYPES` and `PH2_IR_FLATTEN` are hard to extend. * `strbuf_t` stores bytes only; it cannot handle pointers or large structs (`type_t`, etc.). * Using...

When submitting the pull request (#203 ), I used my [beaglebone black](https://www.beagleboard.org/boards/beaglebone-black) (running Debian OS) to build shecc targeting armv7. However, I found that the current memory usage is too...

enhancement

Currently in shecc, variadic functions is lack of flexibility, since variadic arguments cannot be passed from a variadic function to anthoer directly. This means we'll need a shecc-defined `va_list` and...

enhancement

While #196 was developing, it caught my eye that there are several opcodes are unused in phase 1 IR but phase 2 and vice versa, for example: - `OP_jump` was...

After the DU-chain implemented in #156 is built during the compilation process, it’s important to properly release any allocated memory once the chain is no longer needed. This prevents potential...