<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?

        时间:2023-06-11
          <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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何从屏幕顶部为表格视图控制器显示 UISearchBar 下一篇:otool for armv7 的方法实现地址错误?

                  相关文章

                  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>
                    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>