Switching to use foo struct on Windows VM

sig siguctua at gmail.com
Sun Jul 15 00:31:46 UTC 2007


I tried to introduce VM pointers table for use by Exupery, but found
that there's no common way for adding this code because all platforms,
except win32 using foo struct for globals.

I investigated how easy to patch win32 VM for using foo struct and
found that there are little places to change in platform-specific
code.

So i decided to make patch.

1 tinyBenchmarks
using old VM:
 '118518518 bytecodes/sec; 3351243 sends/sec'
  '121673003 bytecodes/sec; 3338403 sends/sec'
 '121788772 bytecodes/sec; 3335847 sends/sec'
 '122020972 bytecodes/sec; 3323125 sends/sec'

using VM with foo struct
 '121327014 bytecodes/sec; 3387727 sends/sec'
'122020972 bytecodes/sec; 3379842 sends/sec'
  '120075046 bytecodes/sec; 3536215 sends/sec'
'120640904 bytecodes/sec; 3335847 sends/sec'

benchmark shows no noticeable difference using foo struct or not.
Maybe this is bad benchmark for this case..

Please , let me know, if my patch is acceptable, from this depends the
way how i implement VM pointers table. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32-foo.1.cs
Type: application/octet-stream
Size: 1797 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070715/7dc2f992/win32-foo.1.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqWin32.rar
Type: application/octet-stream
Size: 35643 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070715/7dc2f992/sqWin32.obj


More information about the Squeak-dev mailing list