CS345 - Software Engineering - Spring 2005-2006
Charlie Peck and Chris Hardie
Department of Computer Science - Earlham College
For this assignment you will need to:
vmstat -10 or top.
-O0 to make sure the compiler doesn't do any optimization.
cs.earlham.edu
100x 1000x ?x
100 1000 ?
x -> y some # some # some #
y -> x some # some # some #
aclx.cs.earlham.edu
100x 1000x ?x
100 1000 ?
x -> y some # some # some #
y -> x some # some # some #
millie.cs.earlham.edu
100x 1000x ?x
100 1000 ?
x -> y some # some # some #
y -> x some # some # some #
You will have to experiment to see what the largest array of chars is when the two dimensions are equal (100 x 100, 1000 x 1000, 2343 x 2343, etc.) Use this size for the third column. Make sure it's as large as possible. N.B. This will vary by platform. Once you have determined what they are your code should detect the underlying platform and use the appropriate conditionals to set the value of that maximum automatically at build time.