Simple_OS documentation

Simple_OS is a small real-time operating system developed for the purpose of education and research.

If you have questions or comments, please contact Ola Dahl - dahl.ola@gmail.com

This is documentation for Simple_OS version 2013-03-05

Changes relative to previous version (2011-10-31)

Older versions

Simple_OS version 2011-10-31

Changes relative to previous version (2011-10-24)

Simple_OS version 2011-10-24

First version to be used in education at Linköping University. Older versions have been used at Malmö University, starting in 2003.

Table of Contents

Delivery and directory structure

A Simple_OS delivery is bundled in a zip-file, named simple_os_<date>.zip.

This version of Simple_OS can be downloaded using the link

http://theintobooks.com/books/intorealtime/simple_os_2013_03_05.zip

When unzipping this file, the following three directories are created, inside the simple_os_<date> directory:

Quick start Linux

The GUI should now be connected to the running Simple_OS application

Create some customers with File->Send text to Simple_OS and then enter the string new

The customers will visit the barber shop, and after they have had their hair cuts, they will rest for a while, and then come back again

You can close the Simple_OS application (and keeping the GUI running), using File->Exit Simple_OS

Then you can modify the Simple_OS application if you want, and build it. NOTE: this requires that you set the environment variable SIMPLE_OS_DIR.

The variable SIMPLE_OS_DIR shall be set to the simple_os directory inside your installation directory, e.g. like this for tcsh

setenv SIMPLE_OS_DIR /home/ola/simple_os_2013_03_05/simple_os

and like this for bash:

export SIMPLE_OS_DIR=/home/ola/simple_os_2013_03_05/simple_os

If you now try

make -f Makefile_32 

the program will be rebuilt.

Start it again, using

./prog_x86_host

and it will connect to the GUI again.

When tired of running the GUI, close it by using File->Exit

Quick start Windows

Simple_OS in Windows can be used with Visual C++ Express Edition.

Visual C++ Express Edition can be obtained from

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

It may be possible to use also other C compilers, but that has not been verified.

Supposing that Visual C++ Express Edition is available, the following steps can be taken:

The GUI should now be connected to the running Simple_OS application

Create some customers with File->Send text to Simple_OS and then enter the string new

The customers will visit the barber shop, and after they have had their hair cuts, they will rest for a while, and then come back again

You can close the Simple_OS application (and keeping the GUI running), using File->Exit Simple_OS

Then you can modify the Simple_OS application if you want, and build it.

If you now try

the program will be rebuilt.

Start it again, using

and it will connect to the GUI again.

When tired of running the GUI, close it by using File->Exit

Author: Ola Dahl <dahl dot ola at gmail dot com>

Date: 2013-03-05 11:00:59 CET

HTML generated by org-mode 6.21b in emacs 23