Re: any file -- symbol in .o file

2002-05-20 Thread Thomas David Rivers
E.B. Dreger [EMAIL PROTECTED] wrote: Greetings all, Eddy, Instead of a system-specific approach, you might want to take advantage of what the C language has to offer. For example, your multi-line issue. You realise that the C preprocessor/compiler will concatentate adjacent

Re: any file -- symbol in .o file

2002-05-20 Thread Matthias Buelow
E.B. Dreger writes: I'm about to whip up a utility that will take any arbitrary file and store the contents in a .o file (complete with symbol names so one can actually link, of course). Why don't you just write a script (sed, awk, perl, whatever) to write the C source for you, from a plaintext

any file -- symbol in .o file

2002-05-19 Thread E.B. Dreger
Greetings all, While writing CGIs in C, I'm getting a bit sick of escaping quotes and line continuations in strings. Not a huge deal, perhaps, but there must be a better way. Strings end up in .data or .rodata in object files to be linked... I'm about to whip up a utility that will take any

Re: any file -- symbol in .o file

2002-05-19 Thread Jonathan Mini
Take a look at file2c. You'll need to run the source through the compiler first, but that is easy to do with make. E.B. Dreger [[EMAIL PROTECTED]] wrote : Greetings all, While writing CGIs in C, I'm getting a bit sick of escaping quotes and line continuations in strings. Not a huge

Re: any file -- symbol in .o file

2002-05-19 Thread E.B. Dreger
JM Date: Sun, 19 May 2002 21:41:05 -0700 JM From: Jonathan Mini JM Take a look at file2c. You'll need to run the source through JM the compiler first, but that is easy to do with make. H. Definitely produces the desired results for the simple case that I mentioned. In fact, more complex

Re: any file -- symbol in .o file

2002-05-19 Thread Peter Wemm
Jonathan Mini wrote: Take a look at file2c. You'll need to run the source through the compiler first, but that is easy to do with make. You probably also want to look at objcopy. You can skip the compile step if you're prepared to use a bit of linker magic: peter@overcee[10:28pm]/tmp-192 cat