[Vm-dev] 32bit-64bit plugin updates

David T. Lewis lewis at mail.msen.com
Thu Nov 15 12:17:17 UTC 2007

As a step toward updating the plugins to support 64-bit VM and
images, I have now gotten the AsynchFilePlugin working on all
combinations of 32-bit and 64-bit host and image for Linux. In
addition to getting another plugin working, the changes correct
some problems in SmartSyntaxPluginCodeGenerator that will make
it easier to update many of the other plugins.

Patches attached.


  Fix object pointer arithmetic for #asOop: in plugins.
  Changes SmartSyntaxPluginCodeGenerator>>generateCoerceToObjectFromPtr:on:
  to handle address arithmetic for 32bit/64bit image and host.

  These changes make the current values of #bytesPerWord and #baseHeaderSize
  visible to plugins to enable clean address calculations on 64bit machines.

  VMMBytesPerWord-dtl conflicts with VMMakerCppTranslation-dtl.
  This patch merges the two. Ignore this if you are not using

  These changes fix address calculation problems on 64 bit machines and
  enable the plugin to work on all combinations of 32bit/64bit image and
  host. Corresponding changes are required in the external support code,
  which will affect all platforms (hence a coordinated change of VMMaker
  and SVN sources is required).

  Patch for AsynchFilePlugin header. Affects all platforms.

  Patch for unix AsynchFilePlugin support code. Similar patches will be
  required for other platforms.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: VmUpdates-1007-dtl.6.cs.gz
Type: application/octet-stream
Size: 478 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20071115/76fa4f32/VmUpdates-1007-dtl.6.cs.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VMMBytesPerWord-dtl.1.cs.gz
Type: application/octet-stream
Size: 1438 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20071115/76fa4f32/VMMBytesPerWord-dtl.1.cs.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VMMBytesPerWord-withCPP-dtl.1.cs.gz
Type: application/octet-stream
Size: 1137 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20071115/76fa4f32/VMMBytesPerWord-withCPP-dtl.1.cs.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AsyncFilePluginFixes-dtl.1.cs.gz
Type: application/octet-stream
Size: 1519 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20071115/76fa4f32/AsyncFilePluginFixes-dtl.1.cs.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: platforms-Cross-plugins-AsynchFilePlugin-AsynchFilePlugin.h.diff.gz
Type: application/octet-stream
Size: 320 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20071115/76fa4f32/platforms-Cross-plugins-AsynchFilePlugin-AsynchFilePlugin.h.diff.obj
-------------- next part --------------
?q4<G platforms-unix-plugins-AsynchFilePlugin-sqUnixAsynchFile.c.diff ??]O?0???????@"e?,?c?d7?l^??jVf)~?z]?vzq==}???'N/?8Mil??5R#R~J?9{829??Y?)?}?{r`[?????b!@F#?????l??gSV????}L?(??*_7?????4????F??X?&a??8??{??E?:??]?8?Q?>s?h?????[!2pP?g?Bi$??????=?*???}

More information about the Vm-dev mailing list