Can we write assembly code iOS based devcies?

Discussion in 'iOS Programming' started by Narendar Singh, Jul 30, 2012.

  1. Narendar Singh macrumors member

    Narendar Singh

    Joined:
    Jun 22, 2012
    Location:
    INDIA
    #1
    AFAIK iOS uses ARM 7.

    So can we write directly assembly language code for iOS based devices?

    Definitely we need to check ARM Instruction Set.
     
  2. Reason077 macrumors 68000

    Reason077

    Joined:
    Aug 14, 2007
    #2
    Yes, you can.

    In XCode, new file->other->assembly file will get you started.

    You can also use GCC inline assembly syntax (which, I believe, LLVM supports as well).
     
  3. Narendar Singh thread starter macrumors member

    Narendar Singh

    Joined:
    Jun 22, 2012
    Location:
    INDIA
    #3
    Sounds good.

    I will start learning this soon. Additionally if you know any recommended book or any resource for that then it would be great, I will also use search engines for that.
     
  4. SteppingStone macrumors member

    SteppingStone

    Joined:
    Aug 6, 2012
    #4
    What are you doing that makes you want to write ARM assembly? Just curious.

    We've had good luck using the NEON intrinsics when we needed high-performance floating point, FWIW.
     
  5. KnightWRX macrumors Pentium

    KnightWRX

    Joined:
    Jan 28, 2009
    Location:
    Quebec, Canada
    #5
    Just note that any ARM assembly you write will not run on the simulator. You'll need to run it on the device itself.
     

Share This Page