Re: Is Apple LLVM 6 compatible with LDC

2014-10-30 Thread Joakim via Digitalmars-d-learn

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@comcast.net


Re: Is Apple LLVM 6 compatible with LDC

2014-10-30 Thread Joakim via Digitalmars-d-learn

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@comcast.net


Sorry, rereading his post now, he did get it working without a C 
wrapper, _I_ needed a C wrapper for Android.


Is Apple LLVM 6 compatible with LDC

2014-10-28 Thread JJDuck via Digitalmars-d-learn
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