頁籤選單縮合
題 名 | Aggressive Elimination of Temporary Variables in C++ Using Normal Semantics |
---|---|
作 者 | 陳義忠; 趙子欽; | 書刊名 | 華夏學報 |
卷 期 | 31 1997.02[民86.02] |
頁 次 | 頁12665-12673 |
分類號 | 312.2 |
關鍵詞 | C++ programming language; Temporary elimination; Compiler optimization; |
語 文 | 英文(English) |
英文摘要 | C++ is a powerful object-oriented programming language. Unlike other object-oriented programming languages, C++ has a very good run-time efficiency. Most of the time, it can even compete with C in execution time. But if the objects in C++ is large enough (usually larger than the register of the running platform), temporary variables generated by C++ could be a serious oracle to run-time performance. In many cases, temporary variables are necessary, especially when handling expressions involve variables of user defined classes with nontrivial constructors and destructors. If the assignment operators of the user defined classes are 'normal ones', i.e. the assigned objects are destructed first, and then constructed using copy constructors, elimination of some temporary variables is possible. In this paper we present these techniques. |
本系統中英文摘要資訊取自各篇刊載內容。