5

I'm not looking for a portable SIMD implementation.

All I need is: a bit-accurate implementation. Performance doesn't matter very much as long as it's not extremely slow.

I want to use it for early stage developing and testing, so that I can compile and run on a host computer for the first 10+ iterations. Then cross-compile and fine tune performance on the ARM target.

I'm pretty used to this development cycle when I work with TI DSP like described here . I want to carry this on when I move to ARM NEON.

Is this already done, or do I need to invent the wheel?

user1095108
  • 14,119
  • 9
  • 58
  • 116
user3528438
  • 2,737
  • 2
  • 23
  • 42
  • I don't know of any portable implementation, except a VM like QEMU. Install a linux ARM distro into a VM and compile away. This is what I do at home. – user1095108 Sep 17 '15 at 13:41
  • @user1095108 Yes, that's a way to do it. But then I need to interface development tools like python or matlab with the emulated VM, rather than a C function compiled to a library. I gut feeling is that interfacing with VM is no easier than interfacing with the target board, so I lose most of the advantage of running it on the host. – user3528438 Sep 17 '15 at 13:44
  • I am also interested in a tool like this, have you invented one? – Tmx Oct 30 '16 at 08:35

1 Answers1

5

Intel has a useful set of macros, neon2sse.h which translate NEON intrinsics to SSE. This enables you to build and test your C/C++ code with NEON intrinsics on an x86 platform.

Paul R
  • 208,748
  • 37
  • 389
  • 560
  • Sure, but OP said portable way. You answer is x86 only. – user1095108 Sep 18 '15 at 08:26
  • 2
    @user1095108: well the question is not entirely clear - the OP says "I'm **not** looking for a portable SIMD implementation", but then goes on to say "All I need is: a portable and bit-accurate implementation". But given that x86 is pretty ubiquitous, and the OP seems to just want to be able to prototype/build/test in a hosted environment, then a generic x86 solution seems to fit the portability requirement (IMNVHO ;-)). The OP hasn't commented, but he has accepted the answer, so I assume it meets his needs. – Paul R Sep 18 '15 at 08:30
  • I knew of these macros myself, but didn't answer because the question specifically says "portable". Maybe the question should be edited. – user1095108 Sep 18 '15 at 08:51
  • Yes, the question ideally needs to be clarified as to the OP's specific requirements. Having said that, it's probably off-topic, since it's asking for recommendations, so it may well get closed. – Paul R Sep 18 '15 at 08:58
  • 1
    I edited it, but hopefully it will be closed, yes. – user1095108 Sep 18 '15 at 09:01