Misplaced Pages

GeckOS

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Unix type Operating System for 6502 processor

Operating system
GeckOS
GeckOS Shell
DeveloperAndré Fachat
OS familyUnix-like
Working stateHistoric
Source modelOpen source
Latest release2.1.1 / January 25, 2024; 11 months ago (2024-01-25)
Latest preview2.0.9 / October 6, 2013; 11 years ago (2013-10-06)
Repositorygithub.com/fachat/GeckOS-V2
PlatformsMOS Technology 6502
Kernel typeMicrokernel
LicenseGPLv2
Official website6502.org

GeckOS is a multitasking operating system for MOS 6502, and compatible processors such as the MOS 6510. The GeckOS operating system is one of the few successful attempts to implement a Unix-like operating system on the 6502 architecture.

Overview

The system offers some Unix-like functionality including pre-emptive multitasking, multithreading, semaphores, signals, binary relocation, TCP/IP networking via SLIP, and a 6502 standard library.

GeckOS includes native support for the Commodore PET (32 KB and 96 KB models), Commodore 64 and the CS/A65 homebrew system. Due to the platform independent nature of the kernel code, GeckOS is advertised as an extremely easy OS to port to alternative 6502 platforms.

Binary compatibility with the LUnix operating system can be attained when the lib6502 shared library is used.

Due to the small fixed-location stack of the 6502, and because an external MMU is rarely provided, multitasking is somewhat limited. The OS supports a maximum of four tasks when a shared stack space is used. This can be increased to sixteen tasks when stack snapshotting is enabled, although this is done at the expense of some system speed.

A webserver is integrated into the SLIP daemon.

Unix on 6502 architecture

While early versions of Unix ran on for example early model PDP-11 computers that were comparable to Commodore 64 in terms of memory and processor performance there were architecture differences in terms of lack of a kernel mode, only 3 8-bit registers versus eight 16-bit general registers, and a fixed stack. These architectural limitations make implementing a Unix-like operating system on the 6502 challenging.

The possible non-exhaustive list of other viable Unix-like implementations on 6502 are LUnix, Asterix (Chris Baird) and ACE (Chris "Polar" Baird). GeckOS arguably is more complete in some respects, with ACE being stronger in terms of standard Unix utilities but weaker in the operating system area.

References

Footnotes

  1. Holmer (2019c), pp. 1, 8.
  2. Holmer (2019c), p. 8.
  3. ^ Weßling (2019), 3.9 Betriebssyteme.
  4. Fachat (2013).
  5. Fachat (2013), Download, Architecture.
  6. Holmer (2019a), 1m.
  7. Holmer (2019b), 2-5m.
  8. Holmer (2019a), 3m.

Sources

External links

Hobbyist operating systems
Unix and Unix-like operating systems and compatibility layers
Operating
systems
BSD
Linux
System V
Other
Compatibility
layers
Categories: