Related articles |
---|
caching global variables in registers richard@imagecraft.com (Richard F. Man) (1999-11-18) |
From: | "Richard F. Man" <richard@imagecraft.com> |
Newsgroups: | comp.compilers |
Date: | 18 Nov 1999 02:53:16 -0500 |
Organization: | ImageCraft Creations Inc. |
Keywords: | registers, optimize |
Consider that loading from memory is expensive, what is the preferred
way of caching global variables. This is under the context of a C
compiler, and we can assume that without the volatile qualifier,
there will not be asynchronous update to the variables. Should this be
handled just a case of common subexpression elimination (with special
care when there are stores) or are there other techniques?
Thanks!
--
// richard
http://www.imagecraft.com
Return to the
comp.compilers page.
Search the
comp.compilers archives again.