• 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: Linker refuses to link my dylib? Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linker refuses to link my dylib? Why?


  • Subject: Re: Linker refuses to link my dylib? Why?
  • From: Greg Guerin <email@hidden>
  • Date: Thu, 15 Feb 2007 11:51:00 -0700

Theodore H. Smith wrote:

>I'm used to CodeWarrior you see which does
>generate position dependant code, so I thoguht it wouldn't hurt?
>Guess I was wrong. I hope this won't slow down my library???

This was mentioned earlier: premature optimization.

You think you have to enable all kinds of optimization settings now, but you
don't.  The first step is always to get it working.  Then you measure the
speed.  Then, and only then, do you examine optimization options and
constraints.

Even if PIC does slow down your code, you may be forced to use it just
because it's a dylib.  Or not, since I'm just guessing.  However, there may
be other constraints that a dylib must simply live with.  Also multiple
settings may work together, e.g. no-PIC may need another setting to work
correctly.  Das buildenopchens ist nicht fuer gefingerpoken.

If you just start clicking things because you think they'll somehow make
your code fast, especially in an unfamiliar environment, you could waste
hours in unproductively having to puzzle out how to reverse all those
ill-made choices.  Especially if you haven't made a safety backup first.

  -- GG


 _______________________________________________
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: Linker refuses to link my dylib? Why?
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: XCode Compile Problem - HELP!!!
  • Next by Date: Re: Linker refuses to link my dylib? Why?
  • Previous by thread: Re: Linker refuses to link my dylib? Why?
  • Next by thread: Re: Linker refuses to link my dylib? Why?
  • Index(es):
    • Date
    • Thread