digitalmars.D.learn - Is Apple LLVM 6 compatible with LDC
I'm trying to compile my D code using LDC and hopefully used by my iOS program in Xcode. So I did some research (correct me if I'm wrong) If I compile my D code using LDC into static file and used by my iOS app and since they have the same compiler backend, are they binary compatible? If it is binary compatible, should I still build some C header file so it can be called by iOS? XCode's compiler seems to keep evolving into their next stage, so I'm not sure if I'm conceptually correct. THanks
Oct 28 2014
On Wednesday, 29 October 2014 at 04:45:00 UTC, JJDuck wrote:I'm trying to compile my D code using LDC and hopefully used by my iOS program in Xcode. So I did some research (correct me if I'm wrong) If I compile my D code using LDC into static file and used by my iOS app and since they have the same compiler backend, are they binary compatible? If it is binary compatible, should I still build some C header file so it can be called by iOS? XCode's compiler seems to keep evolving into their next stage, so I'm not sure if I'm conceptually correct. THanksYou should ask in the ldc forum, as you're more likely to get an answer there. As far as I know, ldc's support for iOS is still in the early stages but they should be binary compatible, particularly if you compile ldc against the same llvm backend, and a C wrapper is likely still necessary, as I don't think Dan Olson got it working without one: http://forum.dlang.org/post/m2txc2kqxv.fsf comcast.net
Oct 30 2014
On Thursday, 30 October 2014 at 08:54:03 UTC, Joakim wrote:As far as I know, ldc's support for iOS is still in the early stages but they should be binary compatible, particularly if you compile ldc against the same llvm backend, and a C wrapper is likely still necessary, as I don't think Dan Olson got it working without one: http://forum.dlang.org/post/m2txc2kqxv.fsf comcast.netSorry, rereading his post now, he did get it working without a C wrapper, _I_ needed a C wrapper for Android.
Oct 30 2014