Chex Usage

Chex (which stands for stands for Cheops execute) executes a program on Cheops from the host workstation. By default, Chex stays resident on the host to service printf, scanf, file I/O, and other basic UNIX system calls from the program, redirecting the program's stdin and stdout to your terminal or xterm window.

A serial I/O option (-ser 0) is provided which forces Chex to only download and start the program's execution - standard I/O is then redirected to the serial console port (see chterm).

Before Chex can be invoked to handle local program execution, your shell's search path, environment variables, and aliases should be configured.

Usage:

    chex [-ser (0|1)] [-which] [-help]
         [-Ttext < hex_addr> ]   [-Tdata < hex_addr> ]
         < program_path>   [ < program_args>   ]

Options:

-ser 0
downloads the program via SCSI but then starts its execution using the Cheops SER_0 port for stdin and stdout.
-ser 1
don't try this alone.
-which
echoes the executable path of the program without executing it.The environment variable $CHEOPS_LOCAL_PATH defines the path of directories that chex searches for to find your executable program.
-help
prints out the above usage reminder.
-Ttext < hex_addr>
relocates the text (code) segment to the given Cheops local address, rather than automatically allocating space for it.
-Tdata < hex_addr>
relocates the uninitialized data segment to the given Cheops local address, rather than automatically allocating space for it.
< program_path>
is the path of the application program.
< program_args>
are the additional optional arguments sent as command line arguments to the downloaded process.


Some basic usage notes:

Go to Chex Details for more information about the chex utility.


Jump to Software Tools
Jump to the Cheops Homepage
cheops-web@media.mit.edu
This is a "fix it yourself" page, located at /mas/garden/cheops/WWW/software/chex_usage.html