Compile time optimization of memory and register usage on the Cray 2