r/AskProgramming • • Sep 12 '26

Other IF per se I am creating a compiled programming language using QBE ir will some one take it and help me with llvm?

Yeah im making a programming language but first im wondering if someone will get llvm for me because I am simply too lazy to put llvm into play.

first the compiler will be written in Dlang, or C
second the language may look weird considering its D based (Or mainly inspired by D)

0 Upvotes

18 comments sorted by

2

u/Temporary-Lead3182 Sep 13 '26

look up how the phrase "per se" is used

1

u/TrueWar515 Sep 16 '26

technically it means by itself there is technically nothing wrong in saying if by itself i am making a compiler...

1

u/munchin-grr Sep 12 '26

ChatGPT and Claude will help for an tiny fee. I have vibecoded an compiler that uses llvm, the llvm part is not that buggy.

1

u/TrueWar515 Sep 12 '26

id rather not
besides im pretty sure my QBE backend will be much better and accurate than ai's

1

u/DTCreeperMCL6 Oct 17 '26

So based. Good to see someone else who doesn't use AI.
I'm learning QBE myself to avoid llvm right now as well.

1

u/TrueWar515 Oct 17 '26

lol i decided to just go with llvm i put in too much effort already + llvm ir seems pretty cool

2

u/DTCreeperMCL6 Oct 18 '26

I might try llvm as well. I'm working with qbe right now but it doesnt have as much documentation. Language design is one of my main passions, but its funny because language design isnt even why Im learning IR's.
I just want to code on a very low level near but not at assembly.

0

u/munchin-grr Sep 12 '26

Just daying that i don't have any problems with the emit ll code part. It's plenty of spagethi and bugs in the rest of the code.

1

u/TrueWar515 Sep 12 '26

bro relies on ai at this point : no offence

1

u/munchin-grr Sep 12 '26

It's just for fun and test what is possible. I would never be able to write an compiler on my own. And no one should use my language for an real project.

1

u/TrueWar515 Sep 12 '26

true except I wish for my language to be used.
probally is not but I will be opening a github for you guys once i get QBE down

9

u/[deleted] Sep 12 '26

[removed] — view removed comment

0

u/TrueWar515 Sep 12 '26

thanks
if not ill deal with QBE and learn llvm later

5

u/[deleted] Sep 12 '26

[removed] — view removed comment

0

u/TrueWar515 Sep 12 '26

ik here lets consider it as me writing QBE and putting llvm on a loop until i self host it

1

u/DTCreeperMCL6 Oct 17 '26

Once its self hosting you could allow both as targets.