In C I could do this:
#define WIDTH 200
#define HEIGHT 200
#define SIZE WIDTH*HEIGHT
If I do that, the generated code doesn't have the unnecessary multiplication of WIDTH*HEIGHT, since the precompiler calculates it beforehand and replaces SIZE with $40000$. Is there a way to do the same in mips (more specifically with the Mars simulator if it matters?)? i.e I have
.eqv WIDTH 200
.eqv HEIGHT 200
And I don't want to waste a few cycles doing mult manually, if there is a way to process that in the precompiler.