Re: Xcode-users Digest, Vol 8, Issue 218
Re: Xcode-users Digest, Vol 8, Issue 218
- Subject: Re: Xcode-users Digest, Vol 8, Issue 218
- From: Jon Ljunggren <email@hidden>
- Date: Fri, 24 Jun 2011 21:00:54 +0200
24 jun 2011 kl. 20:38 skrev email@hidden:
> Send Xcode-users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.apple.com/mailman/listinfo/xcode-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Xcode-users digest..."
> Today's Topics:
>
> 1. Alternate Development Environments? (Jeffrey Walton)
> 2. Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with
> status update (Jeffrey Walton)
> 3. Re: Applescript support in Xcode4 (Eric Wing)
> 4. printing std::string in lldb (Dmitry Markman)
> 5. Re: printing std::string in lldb (Allen Ding)
> 6. Re: Alternate Development Environments? (Alexander von Below)
> 7. Re: printing std::string in lldb (Dmitry Markman)
> 8. Re: Using Xcode 4 and 3.x on same partition? (Roni Music)
> 9. Re: Using Xcode 4 and 3.x on same partition? (Christiaan Hofman)
> 10. TargetConditionals.h + llvm + iphone or Mac conditionals
> (David Hoerl)
> --Boundary_(ID_0hHsX1QZW9qicckxHzOrQA)
> MIME-version: 1.0
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Content-description: Today's Topics (10 messages)
>
> Today's Topics:
>
> 1. Alternate Development Environments? (Jeffrey Walton)
> 2. Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with
> status update (Jeffrey Walton)
> 3. Re: Applescript support in Xcode4 (Eric Wing)
> 4. printing std::string in lldb (Dmitry Markman)
> 5. Re: printing std::string in lldb (Allen Ding)
> 6. Re: Alternate Development Environments? (Alexander von Below)
> 7. Re: printing std::string in lldb (Dmitry Markman)
> 8. Re: Using Xcode 4 and 3.x on same partition? (Roni Music)
> 9. Re: Using Xcode 4 and 3.x on same partition? (Christiaan Hofman)
> 10. TargetConditionals.h + llvm + iphone or Mac conditionals
> (David Hoerl)
>
> --Boundary_(ID_0hHsX1Q
> Today's Topics:
>
> 1. Alternate Development Environments? (Jeffrey Walton)
> 2. Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with
> status update (Jeffrey Walton)
> 3. Re: Applescript support in Xcode4 (Eric Wing)
> 4. printing std::string in lldb (Dmitry Markman)
> 5. Re: printing std::string in lldb (Allen Ding)
> 6. Re: Alternate Development Environments? (Alexander von Below)
> 7. Re: printing std::string in lldb (Dmitry Markman)
> 8. Re: Using Xcode 4 and 3.x on same partition? (Roni Music)
> 9. Re: Using Xcode 4 and 3.x on same partition? (Christiaan Hofman)
> 10. TargetConditionals.h + llvm + iphone or Mac conditionals
> (David Hoerl)
>
> --Boundary_(ID_0hHsX1QZW9qicckxHzOrQA)
> MIME-version: 1.0
> Content-type: multipart/digest; boundary="Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)"
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 20:09:56 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Alternate Development Environments?
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Precedence: list
> Message: 1
>
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 21:26:08 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with status
> update
> In-reply-to: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <BANLkTikRbXccVf6842PpHWWHvakPY=email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; charset=ISO-8859-1
> Content-transfer-encoding: quoted-printable
> Precedence: list
> Message: 2
> References: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
>
> On Tue, Jun 21, 2011 at 2:03 AM, Jeffrey Walton <email@hidden> wrote:
>> Hi All,
>>
>> Please forgive me if this is off topic. The are not a lot of choices
>> at http://lists.apple.com/mailman/listinfo. Xcode seemed the closest
>> to compile/assemble/link.
>>
>> I've got a routine to add two unsigned ints and then check the carry
>> flag in the CPSR on an ARMV6 (Thumb-16 mode). Thumb-16 is enabled by
>> default in Xcode. To perform the add, I use the ADD instruction (ADDS
>> is not available in Thumb mode).
>>
>> __asm__ volatile
>> (
>> =A0"ldr =A0r4, %[xa] =A0;" =A0// R4 =3D a
>> =A0"ldr =A0r5, %[xb] =A0;" =A0// R5 =3D b
>> =A0"add =A0r6, r4, r5 =A0;" =A0// R6 =3D R4 + R5, set status
>> =A0"bcc =A01f =A0 =A0 =A0;" =A0// jump if carry is clear
>> =A0"mov =A0r5, #0 =A0 =A0;" =A0// set overflow
>> =A0"str =A0r5, %[xc] =A0;" =A0// write it to memory
>> =A0"1: =A0 =A0 =A0 =A0;" =A0// jump label
>> =A0"str =A0r6, %[xr] =A0;" =A0// result =3D R6
>> =A0: [xr] "=3Dm" (result), [xc] "=3Dm" (no_carry)
>> =A0: [xa] "m" (a), [xb] "m" (b)
>> =A0: "r4", "r5", "r6"
>> =A0);
>>
>> According to =A0'ARM=AE Developer Suite, v1.2', Section 2.2.8, page 2-9,
>> the status flags are set with ADD under Thumb:
>>
>> =A0The conditional branch instruction is the only Thumb
>> =A0instruction that can be executed conditionally on the
>> =A0value
> --Boundary_(ID_0hHsX1QZW9qicckxHzOrQA)
> MIME-version: 1.0
> Content-type: multipart/digest; boundary="Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)"
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 20:09:56 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Alternate Development Environments?
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Precedence: list
> Message: 1
>
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 21:26:08 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with status
> update
> In-reply-to: <BA
> --Boundary_(ID_0hHsX1QZW9qicckxHzOrQA)
> MIME-version: 1.0
> Content-type: multipart/digest; boundary="Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)"
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 20:09:56 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Alternate Development Environments?
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Precedence: list
> Message: 1
>
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 21:26:08 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with status
> update
> In-reply-to: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <BANLkTikRbXccVf6842PpHWWHvakPY=email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; charset=ISO-8859-1
> Content-transfer-encoding: quoted-printable
> Precedence: list
> Message: 2
> References: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
>
> On Tue, Jun 21, 2011 at 2:03 AM, Jeffrey Walton <email@hidden> wrote:
>> Hi All,
>>
>> Please forgive me if this is off topic. The are not a lot of choices
>> at http://lists.apple.com/mailman/listinfo. Xcode seemed the closest
>> to compile/assemble/link.
>>
>> I've got a routine to add two unsigned ints and then check the carry
>> flag in the CPSR on an ARMV6 (Thumb-16 mode). Thumb-16 is enabled by
>> default in Xcode. To perform the add, I use the ADD instruction (ADDS
>> is not available in Thumb mode).
>>
>> __asm__ volatile
>> (
>> =A0"ldr =A0r4, %[xa] =A0;" =A0// R4 =3D a
>> =A0"ldr =A0r5, %[xb] =A0;" =A0// R5 =3D b
>> =A0"add =A0r6, r4, r5 =A0;" =A0// R6 =3D R4 + R5, set status
>> =A0"bcc =A01f =A0 =A0 =A0;" =A0// jump if carry is clear
>> =A0"mov =A0r5, #0 =A0 =A0;" =A0// set overflow
>> =A0"str =A0r5, %[xc] =A0;" =A0// write it to memory
>> =A0"1: =A0 =A0 =A0 =A0;" =A0// jump label
>> =A0"str =A0r6, %[xr] =A0;" =A0// result =3D R6
>> =A0: [xr] "=3Dm" (result), [xc] "=3Dm" (no_carry)
>> =A0: [xa] "m" (a), [xb] "m" (b)
>> =A0: "r4", "r5", "r6"
>> =A0);
>>
>> According to =A0'ARM=AE Developer Suite, v1.2', Section 2.2.8, page 2-9,
>> the status flags are set with ADD under Thumb:
>>
>> =A0The conditional branch instruction is the only Thumb
>> =A0instruction that can be executed conditionally on the
>> =A0value of the ALU status flags in the CPSR. All data
>> =A0processing instructions update these flags, except
>> =A0when one or more high registers are specified as
>> =A0operands to the MOV or ADD instructions. In these
>> =A0cases the flags cannot be updated.
>>
>> Unfortunately, the status flags are not being updated, so I'm getting
>> incorrect results....
>> [SNIP]
>
> Finished with the knob turning, and wanted to post results in case
> someone else stumbles across this.
>
> According to the Thumb-16 Quick Reference Guide [1], the ADDS
> instruction should be available. This appears to be a bug in the
> assembler (ie, rejecting a valid sentence of the language). Unless of
> course, spurious rejections are OK and expected....
>
> To work around AS's unwillingness to assemble certain mnemonics, one
> can emit the bytes via a directive. For example, in the following code
> the `.short 0x1809` is actually `ADDS R1, R1, R0`.
>
> Jeff
>
> int add_u32(u32t a, u32t b, u32t* r)
> {
> volatile int no_carry;
> volatile u32t result;
> =09
> __asm__ volatile
> (
> // Per the ARM ABI, A and B are in R0 and R1.
> // R (a pointer) is in R2. R0 will be used for return.
>
> "mov r3, #1 ;" // R3 =3D no_carry =3D TRUE
> =09
> // "adds r1, r1, r0 ;" // Nope - assembler error
> ".short 0x1809 ;" // Same as ADDS R1, R1, R0
> "bcc 1f ;"
> "mov r3, #0 ;" // R3 =3D no_carry =3D FALSE
> =09
> "1: ;"
> "str r1, %[xr] ;" // result =3D R1
> "str r3, %[xc] ;" // no_carry =3D R3
> =09
> : [xr] "=3Dm" (result), [xc] "=3Dm" (no_carry)
> :
> : "r1", "r3"
> );
>
> if(r)
> *r =3D result;
>
> return no_carry;
> }
>
> [1] http://infocenter.arm.com/help/topic/com.arm.doc.qrc0006d/QRC0006_UAL16=
> .pdf
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 18:55:59 -0700
> From: Eric Wing <email@hidden>
> Subject: Re: Applescript support in Xcode4
> In-reply-to: <BANLkTi=email@hidden>
> To: Xcode Users <email@hidden>
> Message-id: <BANLkTikHknj=email@hidden>
> MIME-version: 1.0
> Content-type: multipart/alternative;
> boundary="Boundary
> --Boundary_(ID_0hHsX1QZW9qicckxHzOrQA)
> MIME-version: 1.0
> Content-type: multipart/digest; boundary="Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)"
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 20:09:56 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Alternate Development Environments?
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Precedence: list
> Message: 1
>
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 21:26:08 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with status
> update
> In-reply-to: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <BANLkTikRbXccVf6842PpHWWHvakPY=email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; charset=ISO-8859-1
> Content-transfer-encoding: quoted-printable
> Precedence: list
> Message: 2
> References: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
>
> On Tue, Jun 21, 2011 at 2:03 AM, Jeffrey Walton <email@hidden> wrote:
>> Hi All,
>>
>> Please forgive me if this is off topic. The are not a lot of choices
>> at http://lists.apple.com/mailman/listinfo. Xcode seemed the closest
>> to compile/assemble/link.
>>
>> I've got a routine to add two unsigned ints and then check the carry
>> flag in the CPSR on an ARMV6 (Thumb-16 mode). Thumb-16 is enabled by
>> default in Xcode. To perform the add, I use the ADD instruction (ADDS
>> is not available in Thumb mode).
>>
>> __asm__ volatile
>> (
>> =A0"ldr =A0r4, %[xa] =A0;" =A0// R4 =3D a
>> =A0"ldr =A0r5, %[xb] =A0;" =A0// R5 =3D b
>> =A0"add =A0r6, r4, r5 =A0;" =A0// R6 =3D R4 + R5, set status
>> =A0"bcc =A01f =A0 =A0 =A0;" =A0// jump if carry is clear
>> =A0"mov =A0r5, #0 =A0 =A0;" =A0// set overflow
>> =A0"str =A0r5, %[xc] =A0;" =A0// write it to memory
>> =A0"1: =A0 =A0 =A0 =A0;" =A0// jump label
>> =A0"str =A0r6, %[xr] =A0;" =A0// result =3D R6
>> =A0: [xr] "=3Dm" (result), [xc] "=3Dm" (no_carry)
>> =A0: [xa] "m" (a), [xb] "m" (b)
>> =A0: "r4", "r5", "r6"
>> =A0);
>>
>> According to =A0'ARM=AE Developer Suite, v1.2', Section 2.2.8, page 2-9,
>> the status flags are set with ADD under Thumb:
>>
>> =A0The conditional branch instruction is the only Thumb
>> =A0instruction that can be executed conditionally on the
>> =A0value of the ALU status flags in the CPSR. All data
>> =A0processing instructions update these flags, except
>> =A0when one or more high registers are specified as
>> =A0operands to the MOV or ADD instructions. In these
>> =A0cases the flags cannot be updated.
>>
>> Unfortunately, the status flags are not being updated, so I'm getting
>> incorrect results....
>> [SNIP]
>
> Finished with the knob turning, and wanted to post results in case
> someone else stumbles across this.
>
> According to the Thumb-16 Quick Reference Guide [1], the ADDS
> instruction should be available. This appears to be a bug in the
> assembler (ie, rejecting a valid sentence of the language). Unless of
> course, spurious rejections are OK and expected....
>
> To work around AS's unwillingness to assemble certain mnemonics, one
> can emit the bytes via a directive. For example, in the following code
> the `.short 0x1809` is actually `ADDS R1, R1, R0`.
>
> Jeff
>
> int add_u32(u32t a, u32t b, u32t* r)
> {
> volatile int no_carry;
> volatile u32t result;
> =09
> __asm__ volatile
> (
> // Per the ARM ABI, A and B are in R0 and R1.
> // R (a pointer) is in R2. R0 will be used for return.
>
> "mov r3, #1 ;" // R3 =3D no_carry =3D TRUE
> =09
> // "adds r1, r1, r0 ;" // Nope - assembler error
> ".short 0x1809 ;" // Same as ADDS R1, R1, R0
> "bcc 1f ;"
> "mov r3, #0 ;" // R3 =3D no_carry =3D FALSE
> =09
> "1: ;"
> "str r1, %[xr] ;" // result =3D R1
> "str r3, %[xc] ;" // no_carry =3D R3
> =09
> : [xr] "=3Dm" (result), [xc] "=3Dm" (no_carry)
> :
> : "r1", "r3"
> );
>
> if(r)
> *r =3D result;
>
> return no_carry;
> }
>
> [1] http://infocenter.arm.com/help/topic/com.arm.doc.qrc0006d/QRC0006_UAL16=
> .pdf
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 18:55:59 -0700
> From: Eric Wing <email@hidden>
> Subject: Re: Applescript support in Xcode4
> In-reply-to: <BANLkTi=email@hidden>
> To: Xcode Users <email@hidden>
> Message-id: <BANLkTikHknj=email@hidden>
> MIME-version: 1.0
> Content-type: multipart/alternative;
> boundary="Boundary_(ID_wWVMhNLRCJr1INPu9pcHlA)"
> Precedence: list
> Message: 3
> References: <email@hidden>
> <BANLkTi=email@hidden>
>
>
> --Boundary_(ID_wWVMhNLRCJr1INPu9pcHlA)
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
>
> As somebody who is trying to use Applescript/Scripting Bridge to drive
> automated on-iOS-device testing, I feel your pain about Xcode 4.
>
> However, in your case where you are trying to generate Xcode projects,
> have you tried CMake? While CMake's generator support maybe getting a
> little long in the tooth for Xcode 4, it might be a more workable
> solution than Applescript.
>
> -Eric
> --
> Beginning iPhone Games Development
> http://playcontrol.net/iphonegamebook/
>
> --Boundary_(ID_wWVMhNLRCJr1INPu9pcHlA)
> Content-type: text/html; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
>
> As somebody who is trying to use Applescript/Scripting Bridge to drive<br>
> automated on-iOS-device testing, I feel your pain about Xcode 4.<br>
> <br>
> However, in your case where you are trying to generate Xcode projects,<br>
> have you tried CMake? While CMake's generator support maybe getting a<br>
> little long in the tooth for Xcode 4, it might be a more workable<br>
> solution than Applescript.<br>
> <font color="#888888"><br>-Eric</font><br>-- <br>Beginning iPhone Games Development<br><a href="http://playcontrol.net/iphonegamebook/">http://playcontrol.net/iphonegamebook/</a><br>
>
> --Boundary_(ID_wWVMhNLRCJr1INPu9pcHlA)--
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Fri, 24 Jun 2011 01:57:29 -0400
> From: Dmitry Markman <email@hidden>
> Subject: printing std::string in lldb
> To: "email@hidden Users" <email@hidden>
> Message-id: <email@hidden>
> MIME-version: 1.0
> Content-type: multipart/alternative;
> boundary="Boundary_(ID_H1eYeU8P3xlWm1kKXTEsnw)"
> Precedence: list
> Message: 4
>
>
> --Boundary_(ID_H1eYeU8P3xlWm1kKXTEsnw)
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
>
> Hi
> I'm trying to print std::string in lldb
>
> here is a simple program:
>
> #include <iostream>
>
> int main (int argc, const char * argv[])
> {
>
> std::string s("He
> --Boundary_(ID_0hHsX1QZW9qicckxHzOrQA)
> MIME-version: 1.0
> Content-type: multipart/digest; boundary="Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)"
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 20:09:56 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Alternate Development Environments?
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Precedence: list
> Message: 1
>
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 21:26:08 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Re: Inline Ass
> --Boundary_(ID_0hHsX1QZW9qicckxHzOrQA)
> MIME-version: 1.0
> Content-type: multipart/digest; boundary="Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)"
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 20:09:56 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Alternate Development Environments?
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Precedence: list
> Message: 1
>
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 21:26:08 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with status
> update
> In-reply-to: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <BANLkTikRbXccVf6842PpHWWHvakPY=email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; charset=ISO-8859-1
> Content-transfer-encoding: quoted-printable
> Precedence: list
> Message: 2
> References: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
>
> On Tue, Jun 21, 2011 at 2:03 AM, Jeffrey Walton <email@hidden> wrote:
>> Hi All,
>>
>> Please forgive me if this is off topic. The are not a lot of choices
>> at http://lists.apple.com/mailman/listinfo. Xcode seemed the closest
>> to compile/assemble/link.
>>
>> I've got a routine to add two unsigned ints and then check the carry
>> flag in the CPSR on an ARMV6 (Thumb-16 mode). Thumb-16 is enabled by
>> default in Xcode. To perform the add, I use the ADD instruction (ADDS
>> is not available in Thumb mode).
>>
>> __asm__ volatile
>> (
>> =A0"ldr =A0r4, %[xa] =A0;" =A0// R4 =3D a
>> =A0"ldr =A0r5, %[xb] =A0;" =A0// R5 =3D b
>> =A0"add =A0r6, r4, r5 =A0;" =A0// R6 =3D R4 + R5, set status
>> =A0"bcc =A01f =A0 =A0 =A0;" =A0// jump if carry is clear
>> =A0"mov =A0r5, #0 =A0 =A0;" =A0// set overflow
>> =A0"str =A0r5, %[xc] =A0;" =A0// write it to memory
>> =A0"1: =A0 =A0 =A0 =A0;" =A0// jump label
>> =A0"str =A0r6, %[xr] =A0;" =A0// r
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 20:09:56 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Alternate Development Environments?
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Precedence: list
> Message: 1
>
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
>
> MIME-version: 1.0
> Content-type: message/rfc822
>
> Date: Thu, 23 Jun 2011 21:26:08 -0400
> From: Jeffrey Walton <email@hidden>
> Subject: Re: Inline Assembly: Assembling ARM/Thumb-16 ADDS or ADD with status
> update
> In-reply-to: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
> To: Xcode Users <email@hidden>
> Reply-to: email@hidden
> Message-id: <BANLkTikRbXccVf6842PpHWWHvakPY=email@hidden>
> MIME-version: 1.0
> Content-type: text/plain; charset=ISO-8859-1
> Content-transfer-encoding: quoted-printable
> Precedence: list
> Message: 2
> References: <BANLkTi=VGORjVTYdwF0YUHoQcQKUJs3m=email@hidden>
>
> On Tue, Jun 21, 2011 at 2:03 AM, Jeffrey Walton <email@hidden> wrote:
>> Hi All,
>>
>> Please forgive me if this is off topic. The are not a lot of choices
>> at http://lists.apple.com/mailman/listinfo. Xcode seemed the closest
>> to compile/assemble/link.
>>
>> I've got a routine to add two unsigned ints and then check the carry
>> flag in the CPSR on an ARMV6 (Thumb-16 mode). Thumb-16 is enabled by
>> default in Xcode. To perform the add, I use the ADD instruction (ADDS
>> is not available in Thumb mode).
>>
>> __asm__ volatile
>> (
>> =A0"ldr =A0r4, %[xa] =A0;" =A0// R4 =3D a
>> =A0"ldr =A0r5, %[xb] =A0;" =A0// R5 =3D b
>> =A0"add =A0r6, r4, r5 =A0;" =A0// R6 =3D R4 + R5, set status
>> =A0"bcc =A01f =A0 =A0 =A0;" =A0// jump if carry is clear
>> =A0"mov =A0r5, #0 =A0 =A0;" =A0// set overflow
>> =A0"str =A0r5, %[xc] =A0;" =A0// write it to memory
>> =A0"1: =A0 =A0 =A0 =A0;" =A0// jump label
>> =A0"str =A0r6, %[xr] =A0;" =A0// result =3D R6
>> =A0: [xr] "=3Dm" (result), [xc] "=3Dm" (no_carry)
>> =A0: [xa] "m" (a), [xb] "m" (b)
>> =A0: "r4", "r5", "r6"
>> =A0);
>>
>> According to =A0'ARM=AE Developer Suite, v1.2', Section 2.2.8, page 2-9,
>> the status flags are set with ADD under Thumb:
>>
>> =A0The conditional branch instruction is the only Thumb
>> =A0instruction that can be executed conditionally on the
>> =A0value of
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-1 and Security Update
> 2011-004. My MacBook will no longer start properly (even in safe
> mode), and I don't have a spare Apple desktop/laptop. My source code
> is in SVN, and I have 4 spare Lintel/Wintel machines.
>
> Is there another Mac OS X/iOS development environment I could use
> until the world's most expensive brick is morphed back into the
> world's most advanced operating system?
>
> Jeff
>
>
> --Boundary_(ID_Nth3T3kmv1VK/rFQyKqyKA)
> ent-type: text/plain; CHARSET=US-ASCII
> Content-transfer-encoding: 7BIT
> Precedence: list
> Message: 1
>
> Hi All,
>
> I just installed Software Updates SA-2011-06-23-
_______________________________________________
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