The MASM Forum

Specialised Projects => Assembler/Compiler Technology => Topic started by: Jibz on July 25, 2013, 02:56:43 AM

Title: Using LLVM IR as a higher level assembly?
Post by: Jibz on July 25, 2013, 02:56:43 AM
Not sure if it would be practical to write actual code in IR, but the thought of a portable language that is almost down at the assembly level is interesting:

https://idea.popcount.org/2013-07-24-ir-is-better-than-assembly/
Title: Re: Using LLVM IR as a higher level assembly?
Post by: japheth on July 25, 2013, 04:03:45 PM
Quote from: Jibz on July 25, 2013, 02:56:43 AM
...  a portable language that is almost down at the assembly level

But ... isn't C supposed to be exactly that?

I cannot see that there's enough "space" between C and assembly for another useful "abstraction layer".
Title: Re: Using LLVM IR as a higher level assembly?
Post by: habran on July 25, 2013, 08:17:24 PM
I totally agree with Japheth :biggrin:
Title: Re: Using LLVM IR as a higher level assembly?
Post by: jj2007 on July 25, 2013, 09:44:11 PM
Quote from: japheth on July 25, 2013, 04:03:45 PM
I cannot see that there's enough "space" between C and assembly for another useful "abstraction layer".

Especially since we have that level already: macros. If I had to work on Linux, too, MasmBasic would have a IsLinux switch.

Which would not be a valid argument for other processor architectures, of course. But that concerns only 0.1% of the desktop market, right?