Re: [sablevm-jchevm] Windows port

Enrico Migliore <[email protected]> Tue, 11 Apr 2006 07:04:48 +0200
Newsgroups gmane.comp.java.vm.sablevm.devel
Organization -
Message-ID <[email protected]>
Hi folks,

>Hi Enrico,
>
>Enrico Migliore wrote:
>  
>
>>Let's see if I get your suggestion right:
>>
>>1. Use the "thin abstraction layer atop already-provided operating
>>system support"
>> 
>>http://svn.apache.org/viewcvs.cgi/*checkout*/incubator/harmony/enhanced/classlib/trunk/doc/vm_doc/html/group__Thread.html
>>    
>>
>
>Yes, exactly.  :-)
>
>At first sight, it seems to provide all the functionality that SableVM
>needs.
>
>  
>
>>2. Use #if defined (WIN32) to separate WIN32 from Linux code
>>    
>>
>
>Yes, for the now.
>
>  
>
Points 1 and 2 requires me to study some Windows' thread APIs.

>I would prefer to actually get any such code either:
>1- out of SableVM, e.g. into a separate library or in Harmony's port
>   layer, and/or
>  
>
I'm figuring the folder layout structure, to put somewhere, please let 
me know if you find it reasonable:

win32
   |_____src                (proposal A)
   |_____include


arch
   |_____win32
                  |______src         (proposal B)
                  |______include

those are just 2 proposals that came to my mind during the weekend, but 
I'm open to any options.

>2- into well defined system-specific files in SableVM's source code.
>
>
>  
>
For this initial part of the port, I can make a local copy of the files 
that require Windows specific functions, in the folder: "src" and 
"include", and work on them.

As said, before starting the port, I will read over all the threads we 
wrote, read the documentation of SableVM, and make a written proposal to 
the list, in order to have the maximum level of agreement.

I already did a quite complex port in the past (FreeDOS's filesystem 
ported to some embedded platforms) and it took me 6 months, to make a 
clean and reliable work.


Enrico