Basic HTML version of Foils prepared April 16,1996

Foil 58 Interfacing Perl with C

From Perl5 and Advanced Perl4 Features Computational Science for Information Age Course CPS616 Material -- April 16,1996. by Geoffrey C. Fox


1 One can interface Perl5 code with C using an interface constructor called xsubpp
2 This manipulates an existing C library and allows it to be accessed through a designated Perl module
3 Simple datatypes can be handled automatically but user must manipulate complex C datastructures in special xsub code
4 see PerlXS and PerlXSTUT manual entries
5 Also PerlCALL and PerlEMBED manual pages describe how to call Perl from C
6 One can add a Perl Interpreter to your C program, execute a Perl statement such as a pattern match or execute a full Perl subroutine

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Sep 6 1997