• 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: A project without a library or executable issues.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A project without a library or executable issues.


  • Subject: Re: A project without a library or executable issues.
  • From: Wim Lewis <email@hidden>
  • Date: Wed, 14 Dec 2005 12:26:05 -0800


On 14 Dec, 2005, at 11:57 AM, Rush Manbert wrote:
If you find your test.o file and execute "otool -d" on it, you can get a hex dump of the data segment contents, which you could then clean up with an editor (it has offsets in the left column, plus trailing zeros if the number of bytes in your array isn't a multiple of 4), but I suspect that's not what you want.

An easier way to do that would be to use the "segedit" tool --- you can just extract the (__DATA,__data) section from the object file. (If you want, you can also use gcc's __attribute__((section("..."))) extension to place each array in a different (segment,section) for later extraction.)


How about turning this into a program that walks through the testDATA array and writes all of the byte values out to a binary file?

This does seem like the easier way to do it. Have one target in the project compile the tool, and another target can consist of a shell script phase which invokes the tool.



_______________________________________________ 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
References: 
 >A project without a library or executable issues. (From: "D. Walsh" <email@hidden>)
 >Re: A project without a library or executable issues. (From: Rush Manbert <email@hidden>)

  • Prev by Date: Re: A project without a library or executable issues.
  • Next by Date: Compiling simple C code filters to use AltiVec
  • Previous by thread: Re: A project without a library or executable issues.
  • Next by thread: Re: A project without a library or executable issues.
  • Index(es):
    • Date
    • Thread