On Mon, Jan 04, 2010 at 09:04:26PM +0100, St?phane Ducasse wrote:
David check the squeak documentation on how to invoke external library with FFI. In pharo you have also alien (not tested on non intel - works on mac).
You do not have to recompile the vm to invoke external library. You define methods with specific pragmas annotations and the plugin code can be invoked.
One if these days we should write a better doc
http://wiki.squeak.org/squeak/2426 http://www.is.titech.ac.jp/~ohshima/squeak/DShowVideo/index.html http://www.visoracle.com/squeak/faq/ffi-windows.html http://wiki.squeak.org/squeak/356
VMMaker is published on SqueakSource. May be people with more experience will comment.
Tim Rowledge's explanation of VMMaker is here: http://wiki.squeak.org/squeak/2105 You will also find detailed instructions for VM builders along with the platform source code, which is maintained in a Subversion source code repository at squeakvm.org: http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/ For example, documentation on building for Unix (Linux) will be found here: http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/unix/doc/HowToBuildF... And for Windows: http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/win32/docs/?rev=2147 which points to: http://squeakvm.org/win32/ And for Mac OS: http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/Mac%20OS/vm/Document... as well as other documents that John mentioned in his reply. In other words, after you download the platform source code from the Subversion repository, you will find detailed documentation in the subdirectory for each of the major platforms. There is also a mailing list for the VM: http://lists.squeakfoundation.org/mailman/listinfo/vm-dev Dave