OpenSmalltalk / opensmalltalk-vm

Cross-platform virtual machine for Squeak, Pharo, Cuis, and Newspeak.
http://opensmalltalk.org/
Other
563 stars 111 forks source link

Running 6502 image on 64bit Linux #656

Closed Kirtai closed 2 years ago

Kirtai commented 2 years ago

I'm trying to revive a 6502 image (MicroSqueak) but can't seem to find a release or a way to build a VM to run this on my 64bit EndeavourOS (Arch derivative) system. Am I missing something or is that not supported any more?

krono commented 2 years ago

Hi. The lowest version OpenSmalltalk-VM can handle seems to be 6505 (see ckformat for a list).

The traditional SqueakVM Repo at http://squeakvm.org/unix/ might contain the sources you need. Please report here if you have trouble!

krono commented 2 years ago

(PS: 6502 is a 32-bit Image format. It will be a lot of work to make this run on 64-bit Linux. It is possible although really complicated)

OpenSmalltalk-Bot commented 2 years ago

On Tue, Oct 25, 2022 at 08:11:14AM -0700, Tobias Pape wrote:

(PS: 6502 is a 32-bit Image format. It will be a lot of work to make this run on 64-bit Linux. It is possible although really complicated)

No, it is not a lot of work at all. For the traditional VM, the 64-bit VM runs 32-bit images without issue. No 32-bit libraries are required.

Dave

OpenSmalltalk-Bot commented 2 years ago

On Tue, Oct 25, 2022 at 04:10:57AM -0700, Kirtai wrote:

I'm trying to revive a 6502 image (MicroSqueak) but can't seem to find a release or a way to build a VM to run this on my 64bit EndeavourOS (Arch derivative) system. Am I missing something or is that not supported any more?

You can run the image in a web browser with SqueakJS. Just open the demo page at http://try.squeak.org and drop the image and changes file on that page to run it.

For the traditional compiled VM, follow the instructions at https://wiki.squeak.org/squeak/6354 for "VM Recipe: How to build an interpreter VM on Linux".

Precompiled binaries for the trditional VMs are not maintained, so you will need to compile it yourself. This should work without problems on 64bit EndeavourOS, but please ask here on the list if you encounter any issues.

Thanks, Dave

OpenSmalltalk-Bot commented 2 years ago

Hi Dave

On 25. Oct 2022, at 17:15, David T. Lewis @.***> wrote:

On Tue, Oct 25, 2022 at 08:11:14AM -0700, Tobias Pape wrote:

(PS: 6502 is a 32-bit Image format. It will be a lot of work to make this run on 64-bit Linux. It is possible although really complicated)

No, it is not a lot of work at all. For the traditional VM, the 64-bit VM runs 32-bit images without issue. No 32-bit libraries are required.

Ah I forgot that this path actually worked quiet nice, sorry. -tobias

Kirtai commented 2 years ago

I got it running in SqueakJS.

I'll have a look at the old VMs later should I need them.

Kirtai commented 2 years ago

Thanks everyone :)