Skip to content

RFC: Build tinycc or LLVM backend #11

Description

@SirJson

The C in RFC I mean literally.

I want to improve the C compiler since for me writing C89 Code can be confusing at times.
And we have to remember the special licence for LCC. So I was looking into solutions for that problem after all q3asm doesn't know too many ASM commands anyways.

So I came with two solutions:

  1. Write a code generator for tinycc. The project still seems to be active and the licencing would fit better to the project. Also the tiny in the Title already suggests that this is like LCC a small and simple compiler. The bad part is it's a compiler that skips the assembler output stage. Means I don't know if the project would be a good fit for outputting Q3VM assembler.

  2. Write an LLVM backend. That would theoretically improve language support dramatically. In theory we would also get a lot of optimizations for free but I'm not sure about it.
    The bad part woule be the fact that writing an LLVM backend doesn't look like it would be a cake walk.

So the question is:
What do you think would make the most sense in the context of this project?

EDIT: I should never ever write something on my phone first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions