<legend id='yBwXX'><style id='yBwXX'><dir id='yBwXX'><q id='yBwXX'></q></dir></style></legend>

      <bdo id='yBwXX'></bdo><ul id='yBwXX'></ul>
    1. <i id='yBwXX'><tr id='yBwXX'><dt id='yBwXX'><q id='yBwXX'><span id='yBwXX'><b id='yBwXX'><form id='yBwXX'><ins id='yBwXX'></ins><ul id='yBwXX'></ul><sub id='yBwXX'></sub></form><legend id='yBwXX'></legend><bdo id='yBwXX'><pre id='yBwXX'><center id='yBwXX'></center></pre></bdo></b><th id='yBwXX'></th></span></q></dt></tr></i><div id='yBwXX'><tfoot id='yBwXX'></tfoot><dl id='yBwXX'><fieldset id='yBwXX'></fieldset></dl></div>

      <small id='yBwXX'></small><noframes id='yBwXX'>

      <tfoot id='yBwXX'></tfoot>

        在 iOS 上默认是 char 签名还是 unsigned?

        is char signed or unsigned by default on iOS?(在 iOS 上默认是 char 签名还是 unsigned?)
          <tbody id='16bT1'></tbody>

              <legend id='16bT1'><style id='16bT1'><dir id='16bT1'><q id='16bT1'></q></dir></style></legend>

              • <i id='16bT1'><tr id='16bT1'><dt id='16bT1'><q id='16bT1'><span id='16bT1'><b id='16bT1'><form id='16bT1'><ins id='16bT1'></ins><ul id='16bT1'></ul><sub id='16bT1'></sub></form><legend id='16bT1'></legend><bdo id='16bT1'><pre id='16bT1'><center id='16bT1'></center></pre></bdo></b><th id='16bT1'></th></span></q></dt></tr></i><div id='16bT1'><tfoot id='16bT1'></tfoot><dl id='16bT1'><fieldset id='16bT1'></fieldset></dl></div>
                  <bdo id='16bT1'></bdo><ul id='16bT1'></ul>
                  <tfoot id='16bT1'></tfoot>

                  <small id='16bT1'></small><noframes id='16bT1'>

                  本文介绍了在 iOS 上默认是 char 签名还是 unsigned?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  char 在 iOS 上默认是有符号还是无符号?

                  Is char signed or unsigned by default on iOS?

                  (我认为这是一个很好回答的问题,但奇怪的是,谷歌没有发现任何有用的东西!)

                  (I thought this would've been a well answered question, but oddly google turned up nothing at all useful!)

                  推荐答案

                  在大多数情况下,char 在 ARM 上是未签名的(对于 性能原因)并在其他平台上签名.

                  In most cases, char is unsigned on ARM (for performance reasons) and signed on other platforms.

                  iOS 与 ARM 的常规约定不同,默认情况下为 char 签名.(特别是这与 Android 不同,where 代码在ndk中编译默认为无符号字符.)

                  iOS differs from the normal convention for ARM, and char is signed by default. (In particular this differs from Android, where code compiled in the ndk defaults to unsigned char.)

                  这可以在 xcode 中更改,有一个 'char' Type is unsigned 选项(默认为关闭).如果将其更改为yes",xcode 会将 -funsigned-char 传递给 llvm.(在 xcode 5.0.2 上检查)

                  This can be changed in xcode, there is a 'char' Type is unsigned option (which defaults to off). If this is changed to "yes", xcode will pass -funsigned-char to llvm. (Checked on xcode 5.0.2)

                  iOS 不同的原因在 iOS ABI 函数调用指南:ARM64 函数调用约定,简单来说就是:

                  The reason why iOS differs is mentioned in iOS ABI Function Call Guide: ARM64 Function Calling Conventions, which says simply:

                  在 iOS 中,与其他 Darwin 平台一样,char 和 wchar_t 都是签名类型.

                  In iOS, as with other Darwin platforms, both char and wchar_t are signed types.

                  这篇关于在 iOS 上默认是 char 签名还是 unsigned?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  UINavigationController inside a UITabBarController inside a UISplitViewController presented modally on iPhone(UISplitViewController 内的 UITabBarController 内的 UINavigationController 以模态方式呈现在 iPhone 上) - IT屋-程序员软件开发技术分
                  ViewController in UINavigationController orientation change(UINavigationController 中的 ViewController 方向更改)
                  Custom back button in UINavigationController(UINavigationController 中的自定义后退按钮)
                  How to add a navigation controller programmatically in code but not as initial view controller(如何在代码中以编程方式添加导航控制器,但不作为初始视图控制器)
                  How to get the previous viewcontroller that pushed my current view(如何获取推送我当前视图的上一个视图控制器)
                  The correct way to set a light status bar text color in iOS 7 based on different ViewControllers(iOS 7中基于不同ViewControllers设置灯光状态栏文字颜色的正确方法)

                  1. <small id='NhzYw'></small><noframes id='NhzYw'>

                  2. <legend id='NhzYw'><style id='NhzYw'><dir id='NhzYw'><q id='NhzYw'></q></dir></style></legend>
                        <tbody id='NhzYw'></tbody>
                        1. <tfoot id='NhzYw'></tfoot>
                          <i id='NhzYw'><tr id='NhzYw'><dt id='NhzYw'><q id='NhzYw'><span id='NhzYw'><b id='NhzYw'><form id='NhzYw'><ins id='NhzYw'></ins><ul id='NhzYw'></ul><sub id='NhzYw'></sub></form><legend id='NhzYw'></legend><bdo id='NhzYw'><pre id='NhzYw'><center id='NhzYw'></center></pre></bdo></b><th id='NhzYw'></th></span></q></dt></tr></i><div id='NhzYw'><tfoot id='NhzYw'></tfoot><dl id='NhzYw'><fieldset id='NhzYw'></fieldset></dl></div>
                          • <bdo id='NhzYw'></bdo><ul id='NhzYw'></ul>