Home > Archive > PERL Beginners > April 2005 > Starting Template for calling C from Perl
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Starting Template for calling C from Perl
|
|
| Siegfried Heintze 2005-04-22, 3:57 pm |
| I was looking at "Programming Perl" trying to understand how to write OS
vendor neutral C functions to be called by perl and felt a little
overwhelmed (as usual when reading that book).
Can someone recommend a template that works with windows/MSVC/nmake or
Cygwin/GCC/make (unix clone for windows platform) that does something
trivial in C like print "hello" or adds two numbers or concatenates two
strings that will run out of the box and I can just modify.
Thanks,
Siegfried
| |
| Toolscripts 2005-04-22, 8:55 pm |
| I don't think there are any such examples besides the manual. There are
generally clear warnings as to why not to try to do the c code from scratch.
Either work with the xs system directly, or try http://www.swig.org which
has good and bad sides to it. If you described the problem you're having I
can probably help.
--t
----- Original Message -----
From: "Siegfried Heintze" <siegfried@heintze.com>
To: "'Perl Beginners List'" <beginners@perl.org>
Sent: Friday, April 22, 2005 9:37 AM
Subject: Starting Template for calling C from Perl
> I was looking at "Programming Perl" trying to understand how to write OS
> vendor neutral C functions to be called by perl and felt a little
> overwhelmed (as usual when reading that book).
>
> Can someone recommend a template that works with windows/MSVC/nmake or
> Cygwin/GCC/make (unix clone for windows platform) that does something
> trivial in C like print "hello" or adds two numbers or concatenates two
> strings that will run out of the box and I can just modify.
>
> Thanks,
> Siegfried
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>
>
| |
| Siegfried Heintze 2005-04-23, 3:56 am |
| T,
We presently implement some very proprietary algorithms on our web site that
implements case management for trial lawyers. I am anticipating that some of
our customers will find a remote web site to be a security problem -- even
with SSL. (I think SSL will be two slow for us).
I anticipate that some customers will want to run the software inside their
firewall in their private intranet server. Since we have used perl, that
would require that we give away the source code.
Since we are talking about 20K-50K lines of perl source code, I think the
best approach would be to code some key sections up in C/C++ and call those
from perl. C/C++ is better than java and C#/VB.NET because those languages
can be decompiled easily.
Any other ideas?
Siegfried
-----Original Message-----
From: toolscripts [mailto:toolscri@toolscripts.com]
Sent: Friday, April 22, 2005 3:26 PM
To: beginners@perl.org
Subject: Re: Starting Template for calling C from Perl
I don't think there are any such examples besides the manual. There are
generally clear warnings as to why not to try to do the c code from scratch.
Either work with the xs system directly, or try http://www.swig.org which
has good and bad sides to it. If you described the problem you're having I
can probably help.
--t
----- Original Message -----
From: "Siegfried Heintze" <siegfried@heintze.com>
To: "'Perl Beginners List'" <beginners@perl.org>
Sent: Friday, April 22, 2005 9:37 AM
Subject: Starting Template for calling C from Perl
> I was looking at "Programming Perl" trying to understand how to write OS
> vendor neutral C functions to be called by perl and felt a little
> overwhelmed (as usual when reading that book).
>
> Can someone recommend a template that works with windows/MSVC/nmake or
> Cygwin/GCC/make (unix clone for windows platform) that does something
> trivial in C like print "hello" or adds two numbers or concatenates two
> strings that will run out of the box and I can just modify.
>
> Thanks,
> Siegfried
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>
>
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>
|
|
|
|
|