Matt Davis <mattdav...@gmail.com> writes: > I am just trying to settle down on my PhD Computer Science dissertation > topic. I want something low-level, compiler related, and more so > useful/practical. I am considering region-based memory management, to show > memory efficiency and safety. For imperative languages, such as c, this is > rather difficult from static-analysis alone (e.g. aliasing and weak-typing). > However, I do believe region-based management is possible. If I were to take > something of this nature on for my topic, would it be valuable research, and > is > it even worth the effort? I am by far any kind of compiler guru, and figured > you all might know best.
Are you thinking of using the compiler to annotate memory allocation calls with regions? That seems worth investigating. Perhaps you could get some improvement in C++ by using regions to keep containers and the objects they contain close together--I'm thinking C++ because it might be easier for the compiler to detect the cases where it would be useful. Thanks for your interest. Perhaps somebody else has something more intelligent to say. Ian