iphone + LDC, a new ARM adventure
Dan Olson
zans.is.for.cans at yahoo.com
Wed Jan 15 22:21:46 PST 2014
Dan Olson <zans.is.for.cans at yahoo.com> writes:
> However, this call sequence appears often (D caling D).
>
> mov lr, pc
> bx r7
>
> When the function called returns, exectution is no longer in thumb mode
> because of the way the link register was loaded. I think it is
> generated by an llvm fastcc call, but haven't narrowed it down yet. I
> will try to create a simple D function to be sure.
>
> I am thinking it should just be a blx r7 call.
Nevermind, adding -mcpu cortex-a8 gives me the right blx call.
I found the clue: http://llvm.org/bugs/show_bug.cgi?id=16572
I would have though configuring with --target=armv7-apple-darwin would
have defaulted the cpu to armv7, but apparently it is defaulting to
something else.
More information about the digitalmars-d-ldc
mailing list