Mantis - Squeak
Viewing Issue Advanced Details
6561 OS-Win32 feature always 07-15-07 00:47 07-15-07 20:07
sig  
 
normal  
new 3.10  
open  
none    
none  
0006561: Switching to use foo struct on Windows VM
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. :)
 sqWin32.rar [^] (35,643 bytes) 07-15-07 00:47
 win32-foo.1.cs [^] (1,797 bytes) 07-15-07 00:47
 src32.zip [^] (36,926 bytes) 07-15-07 20:06

Notes
(0010879)
andreas   
07-15-07 01:36   
If you put up a zip file (instead of this rar thing) I'll have a look at it.
(0010881)
sig   
07-15-07 20:07   
Done!