This directory contains some simple tests and demos.

Many are compiled for different processors (GPU, DSP
or M68k) and local or main memory. The binaries will
have corresponding suffixes, e.g.

  mbrotgpul => running on gpu in local memory
  mbrotdspm => running on dsp in main memory

Versions with gpum1/dspm1 are compiled using -workaround=1
(see the docs for details).

The demos are compiled as cartridge images but cut to
64k to save space. Removing --DROMEND=0x810000 from the
commands (see build) will create a 2MB image.


mandelbrot.c:

A simple mandelbrot generator taken from the cc65 samples.
The graphics routines from cc65 have been replaced by a
simple character buffer. For the Jaguar, a version using
bitmap graphics can be compiled using -DJAGUAR. The other
versions are using characters.


mandelbrot_duo.c:

A version of the demo that has been modified to run on
GPU and DSP in parallel in local memory.


dhry*:

The standard dhrystone test. The timing routines have
been adjusted to the Jaguar. Not sure if timing is correct
for all targets. When in doubt, use a stop clock and
manually calculate dhrystones/s.


Hennessy.c:

A benchmark suite made up of several small tests which
are too large to all fit into local memory of GPU or DSP.
It has been modified to make use of vbcc's banking feature.
Compiling with -DGPUBANK or -DDSPBANK will put each of the 
separate benchmarks into its own bank and the tests will be
automatically banked in by the compiler library.


