• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting weird assembly view in iOS target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting weird assembly view in iOS target


  • Subject: Getting weird assembly view in iOS target
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 23 Jun 2014 11:25:03 -0700

I’m using the Assembly view of the assistant editor (in Xcode 5.1) to look at the ARM code of an iOS app, but it’s showing me some weird stuff that’s like no cheese I’ve ever tasted. I suspect it’s LLVM intermediate code. There’s an example below. This happens whether I set the current scheme’s destination to simulator or device. I tried the same view in another project and got ARM assembly as I’d expect. WTF?

—Jens

; Function Attrs: nounwind readonly ssp
define hidden i32 @readFoo(i8* nocapture readonly %f) #4 {
  tail call void @llvm.dbg.value(metadata !{i8* %f}, i64 0, metadata !1269), !dbg !1752
  %1 = bitcast i8* %f to i32*, !dbg !1753
  tail call void @llvm.dbg.value(metadata !{i32* %1}, i64 0, metadata !1270), !dbg !1753
  %2 = getelementptr inbounds i8* %f, i32 4, !dbg !1754
  %3 = bitcast i8* %2 to i32*, !dbg !1754
  tail call void @llvm.dbg.value(metadata !{i32* %3}, i64 0, metadata !1270), !dbg !1754
  %4 = load i32* %1, align 4, !dbg !1754, !tbaa !1755
  tail call void @llvm.dbg.value(metadata !{i32 %4}, i64 0, metadata !1272), !dbg !1754
  %5 = load i32* %3, align 4, !dbg !1759, !tbaa !1755
  tail call void @llvm.dbg.value(metadata !{i32 %5}, i64 0, metadata !1273), !dbg !1759
  %6 = mul i32 %5, %4, !dbg !1760
  ret i32 %6, !dbg !1760
}

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: When is an unaligned memory access illegal on ARM?
  • Next by Date: Re: When is an unaligned memory access illegal on ARM?
  • Previous by thread: Re: When is an unaligned memory access illegal on ARM?
  • Next by thread: Odd Xcode-related error messages in console
  • Index(es):
    • Date
    • Thread