|
From: Nicholas N. <nj...@ca...> - 2004-02-12 17:25:35
|
On Thu, 12 Feb 2004, Tom Hughes wrote: > The .def files have one line per test and specify the instruction to > execute, a set of values to be loaded into registers before executing > the instruction, a set of arguments to give to the instruction, and a > set of expected values to look for afterwards. Did you come up with all the inputs and expected outputs? If so, whoa. > > I wonder if the C could be more succinct, eg. by using macros? The > > five generated .c files take up about 2MB :) > > I know what you mean about the size, but most of the code is specific > to the test in terms of the initial values and expected results not to > mention the exact assembly code to use, so I'm not sure how much could > be commoned out. Converting spaces to tabs cuts about 15% :) Other than that, maybe some preprocessor trickery, although you're right in that there aren't any more easy cuts to be made. N |