|
File InstallXcom.html
Author McKeeman
Copyright © 2007
index
A Short Course in Compilers
|
Installing mxcom from the MathWorks File Exchange
-
Open the MathWorks
File Exchange,
find McKeeman in the Author Index, and mxcom in my list of submissions.
- Download the mxcom zip file to Intel x86 WIN, Linux or Apple.
- Unzip the mxcom directory into a folder writable by you.
- Change directory to your mxcom folder.
- Start MATLAB.
Quick Tests for xcom
| >> |
cd mxcom |
| >> |
makeRuntime |
% insures MEX files match platform |
| >>
| xcom x:=y+1 |
% requires input for y |
| |
% reports final value of x |
| >>
| xcom x/pi.x |
% executes program to compute pi |
| >>
| addpath tests trials times |
| >>
| testAll() |
% run all unit tests |
| >>
| tryAll() |
% run all unit trials |
| >>
| timeAll() |
% time runs |
| |