This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Global register optimization

Hi all,

Anybody using Global Register Optimization in combination with a command line based build environment, using the C166 toolchain (see http://www.keil.com/support/man/docs/c166/c166_regfile.htm)? I am trying to figure out how I could incorporate this into our build environment, both to get as much out of the Keil tools as possible in a regular build, and the challenge of optimizing the build environment itself (makefiles, scripts, etc.) in order to support this.

It does seem to be supported on C51, as described in http://www.keil.com/support/docs/904.htm ("COMMAND LINE GLOBAL REGISTER OPTIMIZATION") but not on C166. The map-file does _not_ list the .c files to rebuild, like it does for the C51...

What I see is that the map-file does _not_ suggest a "re-translation" (i.e. rebuild) but when I remove all the .o files and rebuild, with the register definition file being specified, it does generate a file that is 4KB smaller than after a clean build. That's not what I expected and I expected the map-file to have suggested a rebuild in the first place.

--
Joost