Re: Embed perl interpreter and call C function from perl?

2014-08-20 Thread Manuel Reimer
On 08/19/2014 06:58 PM, Jim Gibson wrote: Calling a C program from Perl can be done with the XS mechanism. XS stands for eXternal Subroutine, and is the most common way to provide Perl-to-C linkage. However, you may need to learn something about Perl internals. I know some basics about XS and

Embed perl interpreter and call C function from perl?

2014-08-19 Thread Manuel Reimer
Hello, there are many very good examples on how to execute perl code from C. For example the following tutorial is very helpful: http://perldoc.perl.org/perlembed.html But it only shows calling from C to perl. What I want to do is to create a function in C code and somehow export it to my e

Re: How to reduce perl memory usage?

2013-10-14 Thread Manuel Reimer
On 10/13/2013 10:46 PM, Dr.Ruud wrote: That 64 MB looks like room enough. I hope so ;) Compile a perl without threads, debug. Here, you can see the default build configuration: I would prefer to be a

How to reduce perl memory usage?

2013-10-13 Thread Manuel Reimer
Hello, I would like to use Perl on an embedded device, which only has 64MB of RAM. Are there any tricks to reduce the memory usage of the perl interpreter? Thanks in advance Greetings, Manuel -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginner

Re: what's the problem with a system call

2013-05-16 Thread Manuel Reimer
Shlomi Fish wrote: What system() does (at least on UNIX-like OSes) is fork a child, call exec() with a new process and wait for the new child to terminate (plus some other stuff to get rid of misbehaviours). ... and if you call "system" with just one long string, then Perl opens the system def