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 plainte
"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 adjacen
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> c
E.B. Dreger [[EMAIL PROTECTED]] wrote :
> I guess I'll run with that for now. Off the top of my head, the
> only feature file2c can't provide is user-specified data
> alignment. (Unless, of course, someone corrects me and alerts me
> to a C preprocessor directive similar to assembly's ".align".
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 compl
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
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 a
7 matches
Mail list logo