[Cuis-dev] [cuis-slang] OpenSmalltalkVM Header Generation

Philip Bernhart philip.bernhart at posteo.de
Sun Jun 7 03:19:28 PDT 2020


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?

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_plugin.c
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200607/f0bdd469/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: plugin.h
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200607/f0bdd469/attachment.h>
-------------- next part --------------

Thanks for your time,
Philip


More information about the Cuis-dev mailing list