in reply to Re: Inline C: using stderr segfaults?
in thread Inline C: using stderr segfaults?
Good call++ This is what the call fprintf( stderr, "Got:'%s'\n", text ); gets translated into:
fprintf( ( *( *Perl_IStdIO_ptr( ( ( PerlInterpreter *)Perl_get_context() ) ) )->pStderr ) ( ( *Perl_IStdIO_ptr( ( ( PerlInterpreter* ) Perl_get_context() ) ) ) ), "Get:'%s'\n", text );
And if you can make sense of that your a better man that I.
It's no wonder function calls are slow in perl. Some single lines of XS code end up calling Perl_get_context() 7 or 8 times. There has to be a better way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Inline C: using stderr segfaults?
by salva (Canon) on Nov 05, 2007 at 23:16 UTC | |
by BrowserUk (Patriarch) on Nov 06, 2007 at 12:07 UTC | |
by syphilis (Archbishop) on Nov 06, 2007 at 07:06 UTC |