Thread overview |
---|
October 29, 2014 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 |
October 30, 2014 Re: Is Apple LLVM 6 compatible with LDC | ||||
---|---|---|---|---|
| ||||
Posted in reply to JJDuck | 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. > > THanks You 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 |
October 30, 2014 Re: Is Apple LLVM 6 compatible with LDC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joakim | 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.net
Sorry, rereading his post now, he did get it working without a C wrapper, _I_ needed a C wrapper for Android.
|
Copyright © 1999-2021 by the D Language Foundation