rui314 / chibicc

A small C compiler
MIT License
9.74k stars 892 forks source link

LoongArch backend port #104

Open shipujin opened 2 years ago

shipujin commented 2 years ago

Hi,

I'm adding a LoongArch backend to chibicc and making some progress, treated the porting process of chibicc as a learning process about the LoongArch assembly and compiler. Anyone interested in chibicc and LoongArch can go and play. The fork's commit history is (almost) the same as the original project, and only codegen related code has been ported to LoongArch instead of x86-64.

chibicc-loongarch: https://github.com/shipujin/chibicc-loongarch

Cheers~

stormalf commented 2 years ago

Hi @shipujin , if you are interested I fixed some bugs from chibicc and adding some parameters needed to be able to compile some projects like curl.

shipujin commented 2 years ago

@shipujin , if you are interested I fixed some bugs from chibicc and adding some parameters needed to be able to compile some projects like curl.

I am very interested, but I have been busy with other things recently, and I will test adding your fix later Cheers~