<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-15"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 6/7/2020 7:19 AM, Philip Bernhart via Cuis-dev wrote:
    <blockquote
cite="mid:871rmrxjnz.fsf@ganz.i-did-not-set--mail-host-address--so-tickle-me"
      type="cite">
      <pre wrap="">Hi,

yesterday I looked at the sqNamedPrim.h in opensmalltalk-vm
again. And tried to generate the interpreterProxy interface
structure for my Cuis Slang project.

Not the full one, which is depending on major and
minor versions of the interpreterProxy in the VMMaker package,
but the bare minimum which seems to be shared across the
implementations.

I wrote by hand a small "plugin" which basically just writes
out a logfile which writes a string into it.

For some reason the generated "plugin" is found by FFI and
not by the <primitive: 'primFetchInt' module: 'TestPlugin'>
call.

How to compile: gcc -fpic -shared test_plugin.c -o TestPlugin.so
was written for a 64bit image on a 64bit machine (amd64, intel).

Do you have any suggestions?

</pre>
    </blockquote>
    <br>
    What I would do is to take a simple existing plugin, like
    Matrix2x3Plugin, and generate the C from slang. Then I'd compare
    that C code with your hand written one. I guess the difference is
    there. Something else I'd try is to copy Matrix2x3Plugin with a new
    name, like TestM23Plugin, generate c, compile the library, and see
    that it works.<br>
    <br>
    <blockquote
cite="mid:871rmrxjnz.fsf@ganz.i-did-not-set--mail-host-address--so-tickle-me"
      type="cite">
      <pre wrap=""></pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>

Thanks for your time,
Philip
</pre>
    </blockquote>
    <br>
    Thanks for doing this!<br>
    <br>
    Cheers,<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
  </body>
</html>