At 03:26 PM 10/13/00 +0000, David L. Nicol wrote:
>Dan Sugalski wrote:
>
> > If there's no hit, I'd love to have all perl functions callable from
> > outside. I'm not sure that'll be the case, though I'm all for it...
>
>With the 334 infrastructure, the -o option to generate a linkable object
>from a perl program/library (RFC 121) will be most do-able: "specially
>attributed" functions get put in the .h file and linker symbol table,
>and normal functions still require conversion to/from PerlData before
>calling.

Yep, it'd be doable. A pain, but doable. (One of the compiler books I have 
lists "building the object file" as one of the big jobs for a compiler 
writer not because it's tough, but because nobody ever documents the object 
format right...)

We'd still have to have some sort of initialization code in there somehow, 
but I expect most platforms have a place in the dynamic link phase where 
you can wedge in library initialization calls.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to