Delphi compiler already supports Intel's AVX2 instruction set? Or it is a LLVM/Clang stuff?

Comments

  1. Desktop compiler doesn't support anything remotely close to AVX2. Heck it doesn't even have SSE2 intrinsics.

    ReplyDelete
  2. Horácio Filho You can't really target new hardware other than 486/P4 with Delphi.

    ReplyDelete
  3. Yep, Delphi program CAN'T run on Pentium 5, core duo, or higher...  lol

    ReplyDelete
  4. Phillip Woon It can run sure but can it generate fast AVX2 instructions?
    I doubt it's even possible to write it with asm.

    ReplyDelete
  5. Fast enough for me.  But I guess there are some that need the speed.

    ReplyDelete
  6. José Ramírez
    Delphi supports up to SSE 4.2 (in asm), but not yet AVX. 
    The old db/dw/dd trick in asm will work obviously.
    The major problem with Delphi (or any other compiler) using such instructions is that not all CPU's support them.
    Very few compilers use cpu-mashhalling code and if they do only in a few select places.

    ReplyDelete
  7. I put my AVX2 code (image format conversions) in a FPC compiled dll, and use that in Delphi. The syntax is mostly the same, but FPC has a different way of doing .savenv/.pushnv. But the code will be 99.9% recyclable when Delphi gets it, which is why I chose it over doing it in VS2015

    ReplyDelete

Post a Comment