Two other optimization questions.

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Fri Apr 30 23:15:00 GMT 1999


Andi Kleen <ak@muc.de> writes:


[...]

| GNAT works with the source code of other modules, so it reparses
| the module in question if it finds a Pragma(Inline) directive. This works
| because of the Ada95 module model (a little bit similar to java's), where
| it is always clear where to find the other module.  No linker support needed.
| 
| Somewhere on www.gnat.com there is a paper about their source based module
| concept, in case you want to know more details. 
| 
| G++ will have to support something like this soon too, for an efficient
| Standard C++ "export" implementation, perhaps based on the existing -frepo
| code ?

The trouble is that name-binding, in the presence of templates, is
very context-sensitive and the approach of reparsing the module (or
the source file) isn't quite adapted to C++, IMHO. 

-- Gaby



More information about the Gcc mailing list