New Cog VMs available at...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

New Cog VMs available at...

Eliot Miranda-2
 
VM.r2518/.

CogVM binaries as per VMMaker.oscog-eem.139/r2518.

Add access to VM arguments to Mac.  Make Windows, Mac and Unix consistent:
        Smalltalk getSystemAttribute:
                -1 => executable name
                -2 .. -n => VM arguments *including* image (if explicitly supplied).
Replace win32 command line parsing with unixesque code using CommandLineToArgvW.

linux launch script:
Cope with old linuxes use of /lib/tls hack for an optional thread-local-storage
version of libc/libpthread. The launch scripts add /lib/tls:/usr/lib/tls: to
LD_LIBRARY_PATH instead of /lib:/usr/lib: if the VM is linked to /lib/tls/libc.
--
best,
Eliot

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: [Pharo-project] New Cog VMs available at...

Eliot Miranda-2
 


On Tue, Nov 29, 2011 at 11:54 PM, Alexander Lazarević <[hidden email]> wrote:
2011/11/29 Eliot Miranda <[hidden email]>
                -1 => executable name
                -2 .. -n => VM arguments *including* image (if explicitly supplied).

Before we had (at least on Linux and I guess with the StackVM):

                0 => executable name
                -1 .. -n => VM arguments *including* image (if explicitly supplied).

Right.  And that makes sense.
 

Why the need to change that? And what's 0 returning now? The same as 1 (with path)?

I wanted all three platforms to be the same (the Mac was not answering any VM parameters at all, and Windows was returning the executable in -1).  But I missed that 0 was answering the executable name.  It makes no sense for Smalltalk getSystemAttribute: 0 and Smalltalk getSystemAttribute: -1 to answer the same thing.  I will change it (back) to

                0 => executable name
                -1 .. -n => VM arguments *including* image (if explicitly supplied).

and do so on all platforms.

Thanks for spotting this.

Alex
 
--
best,
Eliot

Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-project] [squeak-dev] Re: New Cog VMs available at...

laza

2011/11/30 Eliot Miranda <[hidden email]>:
> and do so on all platforms.

Harmonizing this across all platforms is definitely a GoodThing™!  Thanks!

Alex