Windows/Android/Mac/RaspberryPi/Linux/ARM/FPGA/ASIC/DSP/uC

FoxyBrown via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 24 12:18:24 PDT 2017


On Saturday, 24 June 2017 at 18:51:44 UTC, Johan Engelen wrote:
> On Saturday, 24 June 2017 at 18:16:46 UTC, FoxyBrown wrote:
>> [...]
>
> Yes indeed. LDC will output the IR when you use the 
> `-output-ll` (human readable) or `-output-bc` (binary 
> representation) compile switches.
>
>> [...]
>
> In theory, yes indeed. What may be important is that the LLVM 
> versions match (the LLVM version used to build LDC, and the 
> LLVM version of that 8051 fork). With every new LLVM version, 
> the IR may change in subtle ways...
>
>> [...]
>
> As far as I know, GCC also uses an IR (it's used for LTO).
>
> -Johan

Why, then, doesn't anything that targets llvm simply target 
everything else? D is not just for the ones listed but also for 
many other platforms? is it simply because no one has implemented 
the transformations to prove it works?


More information about the Digitalmars-d mailing list