ppci
ppci copied to clipboard
A compiler for ARM, X86, MSP430, xtensa and more implemented in pure Python
There are small typos in: - ppci/arch/data_instructions.py - ppci/arch/runtime.py - ppci/lang/c/semantics.py - ppci/wasm/components.py Fixes: - Should read `support` rather than `supprt`. - Should read `referred` rather than `refered`. - Should...
Consider this code: ``` int x = 0xe+1; ``` Expected diagnostics: ``` invalid constant ``` Actual diagnostics: ``` ```
``` #if (1 ? -2 : 1u) < 0 #error #endif ``` ``` File : "" 1:#if (1 ? -2 : 0 + 1u) < 0 2:#error ^ 2022-04-24 21:27:27,454...
`putc` takes a character and a stream. `putchar` is the one that takes only a character.
Hi, I tried to load an existing WASM module (maybe a bit unusual module, I don't know). ``` in ----> 1 wasm.Module(open(r'/home/ekarni/pyodide/addlibs/__loader.wasm','rb')) ~/.pyenv/versions/3.9.6/lib/python3.9/site-packages/ppci/wasm/components.py in __init__(self, *input) 109 elif hasattr(arg, "read"):...
…labels. LLVM IR has a habbit of using implicit names in various places, from function params to basic block labels. In such cases, an autogenerated "numbered name" is used. Signed-off-by:...
A while ago I've found a simple [gc](https://github.com/mkirchner/gc) to use on a simple LISP implementation to be compiled with ppci-cc. What is lacking on master is `__builtin_frame_address(0)` and `set/longjmp`. Do...
Signed-off-by: Paul Sokolovsky
Hello, I'm quite new to PPCI. While I was looking in `ir.py`, I was wondering why the nodes don't have `__eq__` of `__hash__` implemented in them. Is there a reason...