Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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


Report this thread to moderator Post Follow-up to this message
Old Post
Siegfried Heintze
04-22-05 08:57 PM


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>
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Toolscripts
04-23-05 01:55 AM


RE: Starting Template for calling C from Perl
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>



Report this thread to moderator Post Follow-up to this message
Old Post
Siegfried Heintze
04-23-05 08:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:27 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.