ChorusOS 4.0 Hot Restart Programmer's Guide

A.2 Make Environment

A restartable actor can be compiled using any of the following standard Imakefile macros

Actors using dynamic libraries (compiled with Imake macros of the type Dynamic...Target) cannot be hot restartable.

Use hints in the following table to link actors that use the API exported by the hot restart feature. Note that all ChorusOS actors are automatically linked with the libcx.a library.

API Function 

Library 

hrfexec()HR_EXIT_HDL()hrKillGroup()hrGetActorGroup()

libcx.a

pmmAllocate()pmmFree()pmmFreeAll()

pmmlib.a

The following is an example Imakefile for a restartable actor which uses the Persistent Memory Manager API:

SRCS = HR_actor.c

UserActorTarget(HR_actor_s, HR_actor.o, $(NUCLEUS_DIR)/lib/pmm/pmmlib.a)
Depend($(SRCS))