What does HackerNews think of cproc?

C11 compiler (mirror)

Language: C

#34 in C
#26 in Compiler
cproc: a C11 compiler

  *) https://github.com/michaelforney/cproc
  *) programming language used for the compiler: C
  *) using QBE as a backend - https://c9x.me/compile/
Related:

Source on GitHub:

https://github.com/michaelforney/cproc

QBE Compiler back-end:

https://c9x.me/compile/

>"QBE is compiler backend that aims to provide 70% of the performance of industrial optimizing compilers in 10% of the code."

I'd be more optimistic. The cproc C compiler has only a very small team but it supports enough of the C language to compile GCC 4.7.

https://github.com/michaelforney/cproc

Perhaps the lightweight qbe compiler backend. [0] There's a C frontend for qbe called cproc. [1][2]

See also this talk [3] which discusses the relative ease of porting qbe, at 11:14.

[0] https://c9x.me/compile/

[1] https://sr.ht/~mcf/cproc/

[2] Official GitHub mirror: https://github.com/michaelforney/cproc

[3] https://spacepub.space/w/pjgvVL74xtFwqnaKuoCXZj?start=11m14s

A word of warning for those wondering: this is not for Intel syntax, despite referencing the Intel doc.

Minias can assemble itself

...but it's written in C and uses a parser generator? IMHO it feels a bit backwards --- and perhaps even a bit cheating if you're doing this for a "bootstrap pilgrimage" --- to write a lower-level tool in a higher-level language. On the other hand, the same author also links to a C compiler in C, without a parser generator: https://github.com/michaelforney/cproc