• 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
Miscellaneous XCode Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Miscellaneous XCode Questions


  • Subject: Miscellaneous XCode Questions
  • From: Ben Weiss <email@hidden>
  • Date: Thu, 11 May 2006 22:28:21 -0700

Porting some code to Mactel, a few questions...

1. My app links to separate static libraries for debug and release versions, using linker flags -lMyLibrary and -lMyLibrary_d for the respective targets. This works fine, but when I recompile the library, the application project doesn't recognize that the libraries have changed; I have to clean and rebuild the application every time to make sure it incorporates the changed library. Is there a way to get this to happen automatically? (In other words, for the application project to recognize that the library is changed, and force a re-link on build?)

2. The CodeWarrior editor allows you to command-drag 2D blocks of text, then copy and paste over similar blocks. XCode's editor can also select 2D blocks with option-drag, but pasting over a similar block doesn't work correctly. (It introduces spurious newlines.) Is this a bug, and is there a way to make this work in XCode the same way it works in Codewarrior?

3. When a pointer (to say, a char) is cast to a vUInt16* pointer, gcc implicitly assumes that it is 16-byte aligned, and loads data with movdqa. Is it legal for gcc to assume this? Do misaligned loads always have to be coded explicitly?

4. (more of a Shark question, really...) When I show both Code and Assembly in a Shark profile for my app, over half the computation time is shown associated with a single line of code:

54.2%	2105		*buf = _mm_packus_epi16(ppl, ppr);	!	LCP	

This is clearly a bug (neither the pack nor the store should generate the LCP warning, for one thing, and this line of code should take a negligible amount of time); I'll try to isolate it in a test project and submit a bug report, but perhaps a Shark person may recognize what's going on?

5. The "Show Assembly Code" option in XCode is nearly useless, since the code is so cluttered with labels and the like. (In the function popup menu, I have to scroll through hundreds of labels to find my function.) Are there any options to view the assembly in a more simplified format, along the lines of CodeWarrior's disassembler?

Thanks,

Ben
_______________________________________________
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: Miscellaneous XCode Questions
      • From: Chris Espinosa <email@hidden>
References: 
 >(no subject) (From: AurĂ©lien Ammeloot <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Miscellaneous XCode Questions
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: Miscellaneous XCode Questions
  • Index(es):
    • Date
    • Thread