RUS  ENG
Full version
JOURNALS // Proceedings of the Institute for System Programming of the RAS // Archive

Proceedings of ISP RAS, 2015 Volume 27, Issue 6, Pages 87–96 (Mi tisp186)

This article is cited in 1 paper

Technique the instrumentation a code and optimization of code lines in modeling phase transitions on the programming language C++

E. V. Palchevsky, A. R. Khalikov

Ufa State Aviation Technical University

Abstract: 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.

Keywords: code, code optimization, code instrumentation, techniques of writing code, C++, programming.

DOI: 10.15514/ISPRAS-2015-27(6)-6



Bibliographic databases:


© Steklov Math. Inst. of RAS, 2024