Leopold Toetsch wrote:
Harry Jackson <[EMAIL PROTECTED]> wrote:

    251     .local pmc CONN
    252     .local int int_answer
    253     print "About to Connect\n"
    254     P0 = C[0]
    255     S5 = s
    256     invoke
    257     CONN = P5


Calling the sub is something like this (untested):

   .pcc_begin prototyped
   .arg dbstring
   .nci_call PQCONNECTSTART
   .result CONN
   .pcc_end


Running this fails with the followng error.


set_string_native() not implemented in class 'PerlArray'


If such errors occur it helps to run the code with tracing turned on:

$ parrot -t code.imc

and to have a look at the generated PASM

$ parrot -o- code.imc | less

I have been reading the pasm using this method without tracing and it has highlighted my abuse of pdd03 which up until now has been rather enthusiastic. I have stared changing the code to adhere to the calling conventions a bit more.



Harry




Reply via email to