Hi all,
I played with Squeak about 4 years ago and I built some extensions in C. I would like to do the same again with Pharo and I have a big lump of C I would like to interface to. I can't actually remember what I did before and can't seem to find the tutorial I used. Could somebody point me in the right direction please. Thanks Bob _______________________________________________ Pharo-users mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users |
Hi Bob and welcome. There are two possibiities I know to write/communicate to C:
- The FFI plugin is intended to call external libraries from Smalltalk http://wiki.squeak.org/squeak/1414 http://forum.world.st/FFI-Documentation-td2225148.html#a2225148 - Write your own VM primitives http://wiki.squeak.org/squeak/356 http://wiki.squeak.org/squeak/3336 http://wiki.squeak.org/squeak/6102 Probably there are much more links, but maybe this is enough to remember you what you used. Let us know Mariano On Mon, Jun 14, 2010 at 9:02 PM, Bob Cowdery <[hidden email]> wrote: Hi all, _______________________________________________ Pharo-users mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users |
Hi Mariano
Thanks for the links. I managed to dig out my old code and found some of the links, enough for me to write the slang and convert to C. Now I need some header files for the build and presumable a library to link against. I would appreciate a pointer to those as it's not obvious from the links where to get those from. Regards Bob Mariano Martinez Peck wrote: > Hi Bob and welcome. There are two possibiities I know to > write/communicate to C: > > - The FFI plugin is intended to call external libraries from Smalltalk > http://wiki.squeak.org/squeak/1414 > http://forum.world.st/FFI-Documentation-td2225148.html#a2225148 > > - Write your own VM primitives > http://wiki.squeak.org/squeak/356 > http://wiki.squeak.org/squeak/3336 > http://wiki.squeak.org/squeak/6102 > > Probably there are much more links, but maybe this is enough to > remember you what you used. > > Let us know > > Mariano > > On Mon, Jun 14, 2010 at 9:02 PM, Bob Cowdery <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi all, > > I played with Squeak about 4 years ago and I built some extensions > in C. > I would like to do the same again with Pharo and I have a big lump > of C > I would like to interface to. I can't actually remember what I did > before and can't seem to find the tutorial I used. Could somebody > point > me in the right direction please. > > Thanks > Bob > > _______________________________________________ > Pharo-users mailing list > [hidden email] > <mailto:[hidden email]> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users > > > ------------------------------------------------------------------------ > > _______________________________________________ > Pharo-users mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users > _______________________________________________ Pharo-users mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users |
On Mon, Jun 21, 2010 at 12:32 PM, Bob Cowdery <[hidden email]> wrote: Hi Mariano which headers? I am a vm newbie, so I cc'ed squeak-vm mailing list. They may help you much more than me. Cheers Mariano against. I would appreciate a pointer to those as it's not obvious from _______________________________________________ Pharo-users mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users |
On Mon, Jun 21, 2010 at 1:52 PM, Mariano Martinez Peck <[hidden email]> wrote:
_______________________________________________ Pharo-users mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users |
In reply to this post by Mariano Martinez Peck
Mariano Martinez Peck wrote: > > > On Mon, Jun 21, 2010 at 12:32 PM, Bob Cowdery <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi Mariano > > Thanks for the links. I managed to dig out my old code and found > some of > the links, enough for me to write the slang and convert to C. Now > I need > some header files for the build and presumable a library to link > > > which headers? I am a vm newbie, so I cc'ed squeak-vm mailing list. > They may help you much more than me. > sqVirtualMachine.h sqConfig.h sqPlatformSpecific.h sqMemoryAccess.h I had another look around and found this, http://code.google.com/p/pharo/wiki/BuildingAVMOnPharo which has a link to the squeak source SVN. I checked that out and it certainly has all the header files. I still don't know about the libraries. It only talks about building the VM, not a plugin. I don't remember having to jump through any hoops before so I must be missing something. It's another step forward though. Bob > Cheers > > Mariano > > > against. I would appreciate a pointer to those as it's not obvious > from > the links where to get those from. > > Regards > Bob > > Mariano Martinez Peck wrote: > > Hi Bob and welcome. There are two possibiities I know to > > write/communicate to C: > > > > - The FFI plugin is intended to call external libraries from > Smalltalk > > http://wiki.squeak.org/squeak/1414 > > http://forum.world.st/FFI-Documentation-td2225148.html#a2225148 > > > > - Write your own VM primitives > > http://wiki.squeak.org/squeak/356 > > http://wiki.squeak.org/squeak/3336 > > http://wiki.squeak.org/squeak/6102 > > > > Probably there are much more links, but maybe this is enough to > > remember you what you used. > > > > Let us know > > > > Mariano > > > > On Mon, Jun 14, 2010 at 9:02 PM, Bob Cowdery > <[hidden email] <mailto:[hidden email]> > > <mailto:[hidden email] > <mailto:[hidden email]>>> wrote: > > > > Hi all, > > > > I played with Squeak about 4 years ago and I built some > extensions > > in C. > > I would like to do the same again with Pharo and I have a > big lump > > of C > > I would like to interface to. I can't actually remember what > I did > > before and can't seem to find the tutorial I used. Could > somebody > > point > > me in the right direction please. > > > > Thanks > > Bob > > > > _______________________________________________ > > Pharo-users mailing list > > [hidden email] > <mailto:[hidden email]> > > <mailto:[hidden email] > <mailto:[hidden email]>> > > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Pharo-users mailing list > > [hidden email] > <mailto:[hidden email]> > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users > > > > > _______________________________________________ > Pharo-users mailing list > [hidden email] > <mailto:[hidden email]> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users > > > ------------------------------------------------------------------------ > > _______________________________________________ > Pharo-users mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users > _______________________________________________ Pharo-users mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users |
Free forum by Nabble | Edit this page |