How about a 100% CTFE?
Timon Gehr
timon.gehr at gmx.ch
Mon Nov 7 13:24:55 PST 2011
On 11/07/2011 08:42 PM, Trass3r wrote:
>>>> version(ARM)
>>>> {
>>>> immutable X = armSpecificCode(); // you want to run this on an X86???
>>>> }
>>>>
>>> I've always thought that it would be worthwhile to experiment with
>>> LLVM's JIT engine here.
>>> But as has been said quite some care will be necessary for cross
>>> compilation.
>>> Allowing arbitrary non-pure functions would cause lots troubles.
>>
>> Yeah, I think JIT for CTFE would be *very* interesting. But mainly for
>> reasons of speed rather than functionality.
>
> How would JIT work in the above case?
IIRC there are attempts on converting x86 assembly to LLVM-IR.
Probably that works for ARM too. ;)
More information about the Digitalmars-d
mailing list