ChorusOS 4.0 Introduction

Building an Application Actor

This section assumes that you have built a chorus or kernonly system image in the build_dir directory. This example will create a simple Hello World actor.

  1. Create a working directory where the actor will reside.

  2. In this working directory, create a file named Imakefile containing the following lines:


  3. Create a file named hello.c containing your Hello World program, written in C. For example:

    #include <stdio.h>
    int main()
    		printf("Hello World!\n");

  4. Generate a Makefile to build the actor, by typing the following command:

    % ChorusOSMkMf build_dir/Paths

    See ChorusOSMkMf(1CC) for more information about creating a Makefile.

  5. Build the dependencies:

    % make depend

  6. Build the application:

    % make

Your directory will now contain a supervisor actor, hello_s.r.