• 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
Re: iOS datatype size change in 10.x SDK?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS datatype size change in 10.x SDK?


  • Subject: Re: iOS datatype size change in 10.x SDK?
  • From: Jonas Maebe <email@hidden>
  • Date: Tue, 07 Feb 2017 21:18:51 +0100

On 07/02/17 21:14, Carl Hoefs wrote:
When building for an iOS 9.x device using the iOS 9.x SDK, the datatypes long, size_t, and NSInteger have 4-byte representations[1]. But when building for an iOS 9.x device using the iOS 10.x SDK, the datatypes long, size_t, and NSInteger all have 8-byte representations!

     *     Datatype   9.x SDK   10.x SDK    Notes
     * ------------   -------   --------  ----------
     *         bool:  1 byte    1 byte
     *          int:  4 bytes   4 bytes
     *         long:  4 bytes   8 bytes   <- changed
     *    long long:  8 bytes   8 bytes
     *       double:  8 bytes   8 bytes
     *        float:  4 bytes   4 bytes
     *       size_t:  4 bytes   8 bytes   <- changed
     *    NSInteger:  4 bytes   8 bytes   <- changed

Are there other datatypes that have changed? Are these changes documented anywhere?

This suggests you were previously compiling a 32 bit binary, and now a 64 bit one.


Jonas

_______________________________________________
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


  • Follow-Ups:
    • Re: iOS datatype size change in 10.x SDK?
      • From: Carl Hoefs <email@hidden>
References: 
 >iOS datatype size change in 10.x SDK? (From: Carl Hoefs <email@hidden>)

  • Prev by Date: iOS datatype size change in 10.x SDK?
  • Next by Date: Re: iOS datatype size change in 10.x SDK?
  • Previous by thread: iOS datatype size change in 10.x SDK?
  • Next by thread: Re: iOS datatype size change in 10.x SDK?
  • Index(es):
    • Date
    • Thread