[Vm-dev] Prebuilt 64-bit VM on Linux?
Esteban Lorenzano
estebanlm at gmail.com
Mon Apr 15 09:31:01 UTC 2013
Uh? I'm not sure that will work.
The Cog cannot be compiled in 64bits. The JIT will not work and probably not just that but a lot of other issues.
Having a 32bits vm running in a 64bits machine is trivial, but having a 64bits vm with a 32bits image is also an important problem to solve: you need to fix all your address, we tried that with Guille –(bah, he tried while I was pushing him to do it :) and it demonstrated non easy at all.
Yeah, we want a 64bits VM, but I think the path is:
- compile the stackvm
- systemtrace a 64bits image
- have a NB-64 (no point on having a 64 vm who cannot communicate with the outside world
- convince Eliot of port the JIT to 64 bits :)
said so... good luck and please let us now if you success. Nowadays a 64bits VM is more and more important.
Esteban
On Apr 15, 2013, at 11:21 AM, Igor Stasenko <siguctua at gmail.com> wrote:
>
> On 15 April 2013 07:48, Hernán Morales Durand <hernan.morales at gmail.com> wrote:
>>
>> El 10/04/2013 18:34, Igor Stasenko escribió:
>>
>>>
>>> On 10 April 2013 23:11, Hernán Morales Durand <hernan.morales at gmail.com>
>>> wrote:
>>>>
>>>>
>>>>
>>>> I have a 64-bit CentOS server and I want a to measure the peak memory
>>>> usage with valgrind for a script. For that I need a 64-VM (with a 32-bit
>>>> Pharo image).
>>>> I have tried with
>>>> http://www.mirandabanda.org/files/Cog/VM/VM.r2714/coglinux-13.13.2714.tgz
>>>> but file reports: "squeak: ELF 32-bit LSB executable, Intel 80386, version 1
>>>> (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not
>>>> stripped"
>>>>
>>>> Is there any precompiled linux 64-bit binary available?
>>>>
>>>
>>> Welcome to the club "I want 64-bit VM". :)
>>>
>> Thanks Igor, such an honor to be here :)
>>
>> Today I have generated a CogVM under GNU/Linux CentOS 6.3. In the meantime
>> I've fixed a lot of deprecated FileDirectory references to the new
>> FileSystem API in the VMMaker source (I could upload the changes is someone
>> is interested).
>>
>> So I did:
>>
>> CogOnCentOS64Config generateWithSources.
>>
>> Then generated the vmVersionInfo.h from the script extract-commit-info.sh
>>
>> and finally
>>
>> cd build
>> cmake .
>> make
>>
>> everything was generated successfully. But when going to results
>> subdirectory
>> [root at mvs results]# file *
>> CogVM: ELF 32-bit LSB executable, Intel 80386, version
>> 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not
>> stripped
>> libB3DAcceleratorPlugin.so: ELF 32-bit LSB shared object, Intel 80386,
>> version 1 (SYSV), dynamically linked, not stripped
>> libInternetConfigPlugin.so: ELF 32-bit LSB shared object, Intel 80386,
>> version 1 (SYSV), dynamically linked, not stripped
>> vm-display-null: ELF 32-bit LSB shared object, Intel 80386,
>> version 1 (SYSV), dynamically linked, not stripped
>> vm-display-X11: ELF 32-bit LSB shared object, Intel 80386,
>> version 1 (SYSV), dynamically linked, not stripped
>> vm-sound-ALSA: ELF 32-bit LSB shared object, Intel 80386,
>> version 1 (SYSV), dynamically linked, not stripped
>> vm-sound-null: ELF 32-bit LSB shared object, Intel 80386,
>> version 1 (SYSV), dynamically linked, not stripped
>>
>> The generated VM is 32-bit! It seems I have missed something. Should I
>> remove the m32 compiler flags for generating a 64-bit VM?
>>
>
> yes, of course. replace them with m64 (or something more appropriate).
>
>
>> Cheers,
>>
>> Hernán
>>
>>
>>> I think at one day, this club will grow large enough to make
>>> "deliver 64-bit VM" task a top priority for VM devs (including me ;).
>>>
>>>> Cheers
>>>>
>>>> Hernán
>>>>
>>>
>>
>
>
>
> --
> Best regards,
> Igor Stasenko.
More information about the Vm-dev
mailing list