From: | Stefan Monnier <stefan.monnier@lia.di.epfl.ch> |
Newsgroups: | comp.compilers |
Date: | 21 Mar 1996 23:41:46 -0500 |
Organization: | Ecole Polytechnique Federale de Lausanne |
References: | 96-03-006 96-03-091 96-03-106 |
Keywords: | C, optimize |
Originator: | monnier@lia.di.epfl.ch (Stefan Monnier) |
Christopher Glaeser <cdg@nullstone.com> wrote:
] 2) static - Static can cause significant performance problems for many
] C compilers. In particular, few C compilers can keep static variables
] in registers over a region of code. This is most notable when using
I see "static" as an alternative to global or "extern" rather than to
"auto" variables. In this sense static will not make things worse. It
might even make things better since the compiler can then do
interprocedural analysis with full information.
Stefan
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.