Re: [OT] Perl to C Converter?
From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 08/23/04
- Next message: Alan Connor: "Re: [OT] Perl to C Converter?"
- Previous message: Alan Connor: "Re: [OT] Perl to C Converter?"
- In reply to: Alan Connor: "Re: [OT] Perl to C Converter?"
- Next in thread: Alan Connor: "Re: [OT] Perl to C Converter?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 23 Aug 2004 00:30:35 GMT
Alan Connor wrote:
> Joe Smith <Joe.Smith@inwap.com> wrote:
>> Alan Connor wrote:
>>
>>> There's this utility called html2ps that's written in perl, but
>>> the box I want to run it on doesn't have room for perl. It does
>>> have room for a C compiler.
>>
>> A general purpose perl-to-C converter will be the same size as
>> perl itself. If the program you're coverting uses eval($string),
>> then you'd have to include the *entire* perl language.
>
> Sure, but the perl-to-C converter would not have to be on the box
> that I want to run html2ps on. I can do the conversion and
> compilation elsewhere and then have a nice little C binary to
> install on that box, which will be a small fraction of the size
> of perl and the perl html2ps.
So sit down with a listing of html2ps.prl as a guide, and write
your own C version. That limits your understanding of perl to the
portions used. The critical thing is how to massage the data.
-- fix (vb.): 1. to paper over, obscure, hide from public view; 2. to work around, in a way that produces unintended consequences that are worse than the original problem. Usage: "Windows ME fixes many of the shortcomings of Windows 98 SE". - Hutchison
- Next message: Alan Connor: "Re: [OT] Perl to C Converter?"
- Previous message: Alan Connor: "Re: [OT] Perl to C Converter?"
- In reply to: Alan Connor: "Re: [OT] Perl to C Converter?"
- Next in thread: Alan Connor: "Re: [OT] Perl to C Converter?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|