Technique the Instrumentation A Code And Optimization of Code Lines in Modeling Phase Transitions on the Programming Language C++
This article discusses the technique of writing code that you can use to save time to write a specific program, instrumenting code technique on high-level language C ++, examples Coding algorithms are provided for system software and reviewed optimized compilers, by which it is possible to reduce compile time and speed program work. The definitions of the programming language «C» and «C ++», code structure, code optimization. It is also considered the use of statistics to promote programming languages. The basic advantages «C ++» programming language, in comparison with the «C». Produced designation of source code structure for better usability. Examples of the implementation of the code of the algorithm for further work with the code strings. Examples of clear and concise written comments to the source lines. Implemented class constructors and destructors, which aim to detailed optimization and reduction of the use of block RAM in the modeling of phase transitions. The types of optimizations: manual and automatic. In manual optimization described a few paragraphs: peephole, vnutriprotsedurnaya, local, and interprocedural optimization cycles. A structured code with sequential replacement of logical expressions with well developed various types of data for further optimization of consumption of RAM PC. It is shown that work with specific functions and provides practical examples of usage. Manufactured memory consumption calculations before and after optimization of the code lines at various compilers and server hardware, the configuration of which is also given in this article.
Proceedings of the Institute for System Programming, vol. 27, issue 6, 2015, pp. 87-96.
ISSN 2220-6426 (Online), ISSN 2079-8156 (Print).
DOI: 10.15514/ISPRAS-2015-27(6)-6Full text of the paper in pdf (in Russian) Back to the contents of the volume