News for hackers. Stuff that matters.

steven_known

The doc is being written. Until it is ready, I think it might be helpful to build a testcase such as xgen/test/compile/void.c, and debug the xocc.exe to see how it generate IR and lowest IR (wasm) from C-language AST tree.

Show HN: XOC 1.6.0: A Powerful, Commercially-Proven Compiler Framework

Hello everyone, I am thrilled to announce the release of the XOC Compiler Framework 1.6.0, a retargetable compiler infrastructure licensed under the BSD license. This release marks a significant milestone in the evolution of XOC, which has been powering commercial compilers and achieving remarkable performance and stability in production environments. About XOC Compiler Framework The XOC...

( Read More... | 2 comments | 3 points | on HN )

Release of XOC Compiler Framework: A Powerful, Commercially-Proven Solution

Hello everyone, I am thrilled to announce the release of the XOC Compiler Framework 1.6.0, a retargetable compiler infrastructure licensed under the BSD license. This release marks a significant milestone in the evolution of XOC, which has been powering commercial compilers and achieving remarkable performance and stability in production environments.About XOC Compiler Framework The XOC...

( Read More... | no comments | 3 points | on HN )
Re:Show HN: xocc – C compiler based on BSD license on Monday March 22, 2021 @11:01PM (#26550531)
By some feedback of AI compiler performance tuner, the compiler based on XOC is 20% average faster than LLVM based.
Re:Show HN: xocc – C compiler based on BSD license on Monday March 22, 2021 @10:48PM (#26550440)
Good question! In a simply word, GCC&LLVM compilers are good at traditional RISC-like hardware, namely, IR expected to be load/store/compute/branch, etc. More important is, these compilers do not allow user to add custom IR at will. AI chip operator evoloing rapidly, adding IR means the compiler needs to be overhauled. XOC is multi-level IR compiler, MLIR is not. MLIR open source later than XOC. Moreover, MLIR lack s of powerful optimizations.
Re:Show HN: xocc – C compiler based on BSD license on Monday March 22, 2021 @04:31AM (#26538143)
Sure, not only Alibaba, there are lots of applications of XOC. XOC has been used in Java AOT compiler, JavaScript AOT compiler and Type Inference Engine, VLIW/DSP compiler, etc. And XOC is also used in some teaching. For now, XOC is used as AI compiler to do optimization and code-generation for AI chip by some famous AI design manufacturers.
Re:Show HN: xocc – C compiler based on BSD license on Monday March 22, 2021 @04:26AM (#26538106)
For now, xocc supports C99, but does not support GNU extensions yet.
Re:Show HN: xocc – C compiler based on BSD license on Monday March 22, 2021 @04:24AM (#26538099)
Sorry for the inconvenience caused by documents. There is Manual.txt under xoc/doc/ that describes key concepts to XOC IR, Var, MD, etc.We will do our best to supplement documents.
Re:Show HN: xocc – C compiler based on BSD license on Monday March 22, 2021 @04:18AM (#26538065)
Thanks for your attention! XOC infrastructure has been widely used in many field. Recently, some famous AI chip design manufacturers has implemented DSL compiler of AI chip based on XOC. We hope the AI compiler will be open source soon.

Show HN: 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...

( Read More... | 17 comments | 39 points | on HN )
Yes, XOC's licenses are very business-friendly.
XOC provides multi-level IR, it can express and model a program at very high level semantic, whereas gcc/llvm could not. With our experience, keeping all well-tuned transformation and optimization on same IR expression(multi-level) are very important. XOC used to be JavaVM AOT IR, C/C++ compiler IR, JavaScriptVM AOT IR, and it was doing very well. In some new project, XOC even could be used as Deep Learning compiler IR. So XOC is very scalable. In my opinion, perhaps the most interesting feature is its memory description that runs through the framework.

Major release of xocc C compiler, 0.9.2, based on BSD license

Hello everybody, I'm glad to announce the major release of xocc C compiler, 0.9.2, 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 operations, flexibility, and the capability of representing almost all popular languages. There...

( Read More... | 4 comments | 6 points | on HN )