File InstallXcom.html    Author McKeeman    Copyright © 2007    index

A Short Course in Compilers

Installing mxcom from the MathWorks File Exchange

  1. Open the MathWorks File Exchange, find McKeeman in the Author Index, and mxcom in my list of submissions.
  2. Download the mxcom zip file to Intel x86 WIN, Linux or Apple.
  3. Unzip the mxcom directory into a folder writable by you.
  4. Change directory to your mxcom folder.
  5. 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