The GNAT compilation model
暂无分享,去创建一个
One of the novel features of GNAT is its unusual approach to the compilation process and the handling of the Ada library. The words novel and unusual only apply from a traditional Ada compilation perspective. By contrast, a typical C or C++ programmer would find many aspects of the model quite familiar. In GNAT, sources are independently compiled to produce a set of objects, and the set of object files thus produced is submitted to the binder/linker to generate the resulting executable. This approach removes all order-of-compilation considerations, and eliminates the traditional monolithic library structure. Not only is the model very simple to understand, but it makes it easier to build hybrid systems in multiple languages, and is much more compatible with conventional configuration management tools (ranging from the simple Unix MAKE program to sophisticated compilation management environments) than the conventional library structure. Needless to say, the approach we present is fully compatible with the Ada rules of compilation.
[1] Henry Ledgard,et al. Reference Manual for the ADA® Programming Language , 1983, Springer New York.
[2] Franco Gasperoni,et al. Smart recompilation and the GNAT compiler , 1994, TRI-Ada '94.
[3] Edmond Schonberg,et al. The GNAT project: a GNU-Ada 9X compiler , 1994, TRI-Ada '94.
[4] Juris Hartmanis,et al. The Programming Language Ada Reference Manual American National Standards Institute, Inc. ANSI/MIL-STD-1815A-1983 , 1983, Lecture Notes in Computer Science.