A project without a library or executable issues.
A project without a library or executable issues.
- Subject: A project without a library or executable issues.
- From: "D. Walsh" <email@hidden>
- Date: Tue, 13 Dec 2005 22:42:46 -0500
- Mta-interface: amavisd-new-2.3.3 (20050822) at daleenterprise.com
I'm trying to generate a project that does not generate libraries or
executables but data files.
I've gone through the docs and every target they speak of is either
an executable or a library but this project is for data files only.
What's the trick??
I can compile the source files from the CL however there are always
244 leading bytes of data (see dump below).
The actual files have 200-1000 matrix entires that are 10 bytes per
row and 16+ rows so using a hex-editor to generate the 30-40 files
hurts.
Here is my test compile session with a reduced file with 1 row of 10
bytes so the file should be 10 bytes in length.
test.c
___________________________
/*
this is all the data
the file should be 10 bytes in length
*/
char testDATA[] = {
/* Entry 000 */
1,2,3,4,5,6,7,8,9,10,
};
___________________________
(I'd be content in using a Makefile if I could figure out how to not
generate the leading data)
compiled with:
gcc -pipe -static -c -o test.out test.c
___________________________
here's the resulting file content, there are always 244 leading bytes
of data that should not be included in the file contents as well as
some trailing.
(hdump is a little hack I wrote to give me a nice formated view of a
files contents)
mustangrestomods:/ root# hdump -vC test.out
00000000 fe ed fa ce 00 00 00 12 00 00 00 00 00 00 00 01
|................|
00000010 00 00 00 02 00 00 00 d8 00 00 20 00 00 00 00 01
|.......... .....|
00000020 00 00 00 c0 00 00 00 00 00 00 00 00 00 00 00 00
|................|
00000030 00 00 00 00 00 00 00 00 00 00 00 0a 00 00 00 f4
|................|
00000040 00 00 00 0a 00 00 00 07 00 00 00 07 00 00 00 02
|................|
00000050 00 00 00 00 5f 5f 74 65 78 74 00 00 00 00 00 00
|....__text......|
00000060 00 00 00 00 5f 5f 54 45 58 54 00 00 00 00 00 00
|....__TEXT......|
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f4
|................|
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|................|
00000090 00 00 00 00 00 00 00 00 5f 5f 64 61 74 61 00 00
|........__data..|
000000a0 00 00 00 00 00 00 00 00 5f 5f 44 41 54 41 00 00
|........__DATA..|
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0a
|................|
000000c0 00 00 00 f4 00 00 00 02 00 00 00 00 00 00 00 00
|................|
000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02
|................|
000000e0 00 00 00 18 00 00 01 00 00 00 00 01 00 00 01 0c
|................|
000000f0 00 00 00 0c 01 02 03 04 05 06 07 08 09 0a 00 00
|................|
00000100 00 00 00 01 0f 02 00 00 00 00 00 00 00 5f 74 65
|............._te|
00000110 73 74 44 41 54 41 00 00 |stDATA..|
00000118
_______________________________________________
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