xocc – C compiler based on BSD license
Hello everybody, I'm glad to announce the major release of xocc C compiler, 1.2.1, based on BSD license. xocc is a C compiler that based on XOC infrastructure, XGEN code generator and XOCFE C frontend. Both xocc, XOC, XGEN, and XOCFE are based on BSD license. XOC provides multi-level IRs, flexibility, and the capability of representing almost all popular languages. There are mainly two level IRs used throughout all phases of the compilation. In addition to basic IR, XOC also provides IR builder, BB manipulating api, Control Flow Graph(CFG), IR lowering, Control Dependent Graph, Dominator…
What it does
In the maker’s words, at launch
Hello everybody, I'm glad to announce the major release of xocc C compiler, 1.2.1, based on BSD license. xocc is a C compiler that based on XOC infrastructure, XGEN code generator and XOCFE C frontend. Both xocc, XOC, XGEN, and XOCFE are based on BSD license. XOC provides multi-level IRs, flexibility, and the capability of representing almost all popular languages. There are mainly two level IRs used throughout all phases of the compilation. In addition to basic IR, XOC also provides IR builder, BB manipulating api, Control Flow Graph(CFG), IR lowering, Control Dependent Graph, Dominator Tree, Register SSA, Memory SSA, Agressive Flow Sensitive Alias Analysis, Flow Insensitive Alias Analysis, Agressive Field Sensitive Alias Analysis, Interprocedual Analysis Framework, Inliner, Dead Code Elimination, Copy Propagation, GCSE, GVN, and a lot of sophisticated control flow and peephole optimizations. Moveover, XOC does not use any std library, it provides all basic algorithm library such Vector, List, Map, Dense Bitset, Sparse Bitset, Graph, Mempool, Big-Integer, Linear Algebraic library, Linear Programming Solver, just read Manual.txt of XOC. XGEN provides a retargetable machine code generator. For now, it could generate ARM, x86 code. XGEN provides IR2OR translator, Instruction Scheduling, Register Allocation, Instruction Packager, Assembly. XOCFE is C frontend, it prints AST as output. XOCC is a driver that composes XOCFE, AST2IR, XOC and XGEN into complete C compiler. All features provided by XOCC, XOC, XGEN, XOCFE empower you developing any compiler and analysis tools. Any feedback on the compiler and its components would be much appreciated! To build xocc, see https://github.com/stevenknown/xgen for details. Get them here: https://github.com/stevenknown/xgen https://github.com/stevenknown/xoc https://github.com/stevenknown/xocfe https://github.com/stevenknown/xpoly Contact: [email protected]
Does the same job
all alternatives →- SHShivyC – Hobby C compiler created in Python2018 · github.com · ▲120
- AMA minimal C runtime for Linux i386 and x86_64 in 87 SLOC of C2015 · github.com · ▲172
- WCWIP C compiler in Go, inspired by 8cc2015 · github.com · ▲60
- AWA work-in-progress C compiler from scratch2021 · github.com · ▲159
- MOMy own C compiler (just for fun)2016 · github.com · ▲175
- ASA simple way to write standalone C programs for i3862019 · github.com · ▲147
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, March 2021
the whole month →
Ghost 4.0▲1,099Newsletters, memberships, subscriptions - all in one place
Dev tools · 2021 · ghost.org
- IW
Life & fun · 2021 · practical-go-lessons.com

First 1000▲655Case studies on how companies got their first 1000 customers
Growth · 2021 · first1000.co
- SN
Life & fun · 2021 · github.com
- VG
Life & fun · 2021 · coderelay.io