AdeptLanguage / Adept

The Adept Programming Language
GNU General Public License v3.0
119 stars 9 forks source link

C backend #192

Closed ghost closed 11 months ago

ghost commented 11 months ago

Compiles to C instead of LLVM IR. Use a C compiler (GCC/Clang/...) to do the rest of the job.

IsaacShelton commented 11 months ago

A C backend would be nice to have, although some constructs are not easily expressible in C so it would be very difficult.

ghost commented 9 months ago

Why does the OP close it as not planned? @IsaacShelton Please reopen this issue. It's still valid.

IsaacShelton commented 9 months ago

Right now other things have higher priority, such as the development on a successor to Adept 2.x.

Also, not all of the instructions that Adept generates are translatable to C, so it would require redoing the entire backend.

ghost commented 9 months ago

Also, not all of the instructions that Adept generates are translatable to C, so it would require redoing the entire backend.

If it's the case, better stick with LLVM. A C backend is not needed.