Operating System (OS) Sample Demos

Location

$REVOLUTION_SDK_ROOT/build/demos/osdemo

Compilation

Navigate to $REVOLUTION_SDK_ROOT/build/demos/osdemo and enter make. The executable (elf) file will be generated under $REVOLUTION_SDK_ROOT/build/demos/osdemo/bin/RVL/.

Execution

Go to $REVOLUTION_SDK_ROOT/build/demos/osdemo/bin/RVL/ and perform one of the following:

Description

allocdemo1-gettingmemory Shows how to get memory from the arena.
allocdemo2-oneheap Shows how to set up and use one heap.
allocdemo3-multipleheaps Shows how to set up and use multiple heaps.
cachedemo Demonstrates different ways of viewing memory by cached and uncached access.
errordemo Shows how to set up and use the error handler.
idlefunctiondemo Shows a trivial example of a background task.
lockedcachedemo1 High-level locked cache API demo.
lockedcachedemo2 Low-level locked cache API demo.
stopwatchdemo Counts how long a matrix concatenation takes.
threaddemo1 Shows how to create a new thread and how to resume it.
threaddemo2 Shows how to create a new thread and how to join with it.
threaddemo3 Shows how to use a message queue to synchronize threads.
threaddemo4 Shows how to use a mutex to synchronize threads.
threaddemo5 Shows how to use condition variables to synchronize threads.
timerdemo Shows how to set up and use an alarm.
fontdemo1 Shows how to use the IPL ROM font with the GX library.
fontdemo2 Shows how to use compressed IPL ROM font image.
fpe Shows how to use the OS_ERROR_FPE error hander.
panic Shows how to hook the SDK assertion message to show the assertion failure message on TV screen using the OSFatal function.
report Shows how to hook the OSReport function to show the output messages on TV screen.
alarm Sets user data in the alarm and shows how to obtain data after the alarm goes off.
cppsetupdemo Shows how to override the new and delete operators when developing in C++.
crcdemo Shows the CRC calculation method.

See Also

OS APIs

Revision History

2008/05/19 Added the crcdemo demo.
2006/11/06 Added the cppsetupdemo demo.
2006/07/xx Added the alarm demo.
2006/03/01 Initial version.


CONFIDENTIAL