Cwerg
Cwerg copied to clipboard
The best C-like language that can be implemented in 10kLOC.
This should enable simple debugging, e.g. stack traces.
This should be very similar to either the a32 or a64 backend. Some advise how to go about writing a new backend can be found here: https://github.com/robertmuth/Cwerg/blob/master/Docs/backend_porting.md
but only if those are available on a raspi 3
The simplifier accepts an x86 instruction and returns a semantically equivalent but "better" x86 instruction. "better" usually means short encoding. This would be implemented in CpuX64/ in a table driven...
In the C++ version each Const has an associated DK but in Python we just use "float" for F32/F64 and "int" for the rest.
Reference: https://community.arm.com/developer/tools-software/oss-platforms/b/android-blog/posts/arm-neon-programming-quick-reference Most operations are support except division: https://community.arm.com/developer/tools-software/tools/f/armds-forum/930/division-with-neon
This applies to A64 (fmov, vmov) and A32 (vmov) Currently all these constants are loaded from memory which is quite inefficient.
* mod with signed ints * div/mod with zero divisors * shifts with shift amounts exceeding the bitwidth of the operand * conversions that widen and change from signed to...