Automatic checking of the usage of the C++ move semantics

Baráth Áron; Porkoláb Zoltán: Automatic checking of the usage of the C++ move semantics. In: Acta cybernetica, (22) 1. pp. 5-20. (2015)

[thumbnail of actacyb_22_1_2015_2.pdf]
Előnézet
Cikk, tanulmány, mű
actacyb_22_1_2015_2.pdf

Letöltés (240kB) | Előnézet

Absztrakt (kivonat)

The C++ programming language is a favorable choice when implementing high performance applications, like real-time and embedded programming, large telecommunication systems, financial simulations, as well as a wide range of other speed sensitive programs. While C++ has all the facilities to handle the computer hardware without compromises, the copy based value semantics of assignment is a common source of performance degradation. New language features, like the move semantics were introduced recently to serve an instrument to avoid unnecessary copies. Unfortunately, correct usage of move semantics is not trivial, and unintentional expensive copies of C++ objects - like copying containers instead of using move semantics - may determine the main (worst-case) time characteristics of the programs. In this paper we introduce a new approach of investigating performance bottlenecks for C++ programs, which operates at language source level and targets the move semantics of the C++ programming language. We detect copies occurring in operations marked as move operations, i.e. intended not containing expensive copy actions. Move operations are marked with generalized attributes - a new language feature introduced to C++11 standard. We implemented a tool prototype to detect such copy/move semantic errors in C++ programs. Our prototype is using the open source LLVM/Clang parser infrastructure, therefore highly portable.

Mű típusa: Cikk, tanulmány, mű
Befoglaló folyóirat/kiadvány címe: Acta cybernetica
Dátum: 2015
Kötet: 22
Szám: 1
ISSN: 0324-721X
Oldalak: pp. 5-20
Nyelv: angol
Kiadás helye: Szeged
Befoglaló mű URL: http://acta.bibl.u-szeged.hu/38539/
DOI: 10.14232/actacyb.22.1.2015.2
Kulcsszavak: Számítógép programozás, Programozási nyelv C++
Megjegyzések: Bibliogr.: p. 19-20. ; összefoglalás angol nyelven
Szakterület: 01. Természettudományok
01. Természettudományok > 01.02. Számítás- és információtudomány
Feltöltés dátuma: 2016. okt. 17. 10:36
Utolsó módosítás: 2022. jún. 20. 09:35
URI: http://acta.bibl.u-szeged.hu/id/eprint/36173
Bővebben:
Tétel nézet Tétel nézet