Recent

Author Topic: Hello Thaddy  (Read 1528 times)

bobdp

  • New member
  • *
  • Posts: 34
Hello Thaddy
« on: May 28, 2018, 09:33:28 pm »
How are you?
Please when can be possible to test the LLVM backend compiler?
Status?

Thaddy

  • Hero Member
  • *****
  • Posts: 7178
Re: Hello Thaddy
« Reply #1 on: May 28, 2018, 09:42:20 pm »
The status is what is in trunk. (and it needs some magic (sorry, Mac  O:-))to use it in simple scenario's. It is not complete)
Only Jonas knows the exact status.

« Last Edit: May 28, 2018, 09:45:48 pm by Thaddy »
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

bobdp

  • New member
  • *
  • Posts: 34
Re: Hello Thaddy
« Reply #2 on: May 28, 2018, 09:45:16 pm »
It’s alive? Timeline for a x64 inteL test release?

Thaddy

  • Hero Member
  • *****
  • Posts: 7178
Re: Hello Thaddy
« Reply #3 on: May 28, 2018, 09:49:27 pm »
It is alive, afaik, but llvm is a moving target (llvm itself, not Jonas efforts!).
It is quite a difficult situation, so you should really ask Jonas.
I am merely testing when I feel like it.
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

SlightlyOutOfPhase

  • New member
  • *
  • Posts: 18
Re: Hello Thaddy
« Reply #4 on: June 11, 2018, 03:12:54 am »
There's no way it's going to be anything close to usable anytime in the near future, honestly. It's already extremely out of date (LLVM is at version 7.0, the FPC backend only goes up to 3.9), and seems pretty much completely unmaintained.

Also I got the impression it was only going to be usable on Macs in the first place (which doesn't make very much sense to me really, as the whole point of LLVM is to be universal? What is different about the FPC backend that makes this impossible? Isn't it just writing IR from Pascal code?)
« Last Edit: June 11, 2018, 03:15:03 am by SlightlyOutOfPhase »

Thaddy

  • Hero Member
  • *****
  • Posts: 7178
Re: Hello Thaddy
« Reply #5 on: June 11, 2018, 09:47:22 am »
Well, if you followed the llvm history you know what difficulties Jonas faces. It is definitely not abandoned and is already integrated in trunk.
The target is first geared to getting it working on macs and then scale to other platforms, as I understand it.

BTW there are alternative (complex) scenario's to use llvm by using some exotic toolchain: compile to Java --> Compile the java byte code to llvm -->compile the llvm code to binary.
It is even possible to use the new Javascript back-end and generate LLVM ir code from that! (Google)
This is not for the fainthearted, but it works. (Not for Lazarus, but for FPC)
And llvm is not the holy grail. You just have to be patient.
« Last Edit: June 11, 2018, 09:52:48 am by Thaddy »
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.