E
Eden Cardim
Greetings,
I'd like to know if there's any tool available that generates C source
based on some Perl program. The standard B::C doesn't do what I need,
since it generates code that deals with Perl's internal representation,
I need something more literal, that would automatically convert the
sub-routine calls, builtin functions, conditional evaluations, etc, and
maybe even build structs out of perl hashes and build calls to malloc
(sic). I'm not even sure its possible to do so, but who knows?
The reason I need this translation is that my computer science
graduation course changed it's schedule and now I'm being forced to
watch some basic programming classes because of bureaucratic issues
(even though I'll by graduating next semester), and my teacher wants
all the homework done in C. Since I already work with Perl for quite
some time and am pretty well familiarized with all the key programming
concepts, I'd like to save some time (to work on my final paper) by
doing my homework in Perl and then convert it to C in order to please
the teacher, plus I'm too lazy to go up the attic and undig all my C
literature ;-).
Thanks in advance.
I'd like to know if there's any tool available that generates C source
based on some Perl program. The standard B::C doesn't do what I need,
since it generates code that deals with Perl's internal representation,
I need something more literal, that would automatically convert the
sub-routine calls, builtin functions, conditional evaluations, etc, and
maybe even build structs out of perl hashes and build calls to malloc
(sic). I'm not even sure its possible to do so, but who knows?
The reason I need this translation is that my computer science
graduation course changed it's schedule and now I'm being forced to
watch some basic programming classes because of bureaucratic issues
(even though I'll by graduating next semester), and my teacher wants
all the homework done in C. Since I already work with Perl for quite
some time and am pretty well familiarized with all the key programming
concepts, I'd like to save some time (to work on my final paper) by
doing my homework in Perl and then convert it to C in order to please
the teacher, plus I'm too lazy to go up the attic and undig all my C
literature ;-).
Thanks in advance.