Nalazite se na CroRIS probnoj okolini. Ovdje evidentirani podaci neće biti pohranjeni u Informacijskom sustavu znanosti RH. Ako je ovo greška, CroRIS produkcijskoj okolini moguće je pristupi putem poveznice www.croris.hr
izvor podataka: crosbi

Exploring the Access to the Static Array Elements via Indices and via Pointers — the Introductory C++ Case (CROSBI ID 723632)

Prilog sa skupa u časopisu | izvorni znanstveni rad | međunarodna recenzija

Logožar, Robert ; Mikac, Matija ; Radošević, Danijel Exploring the Access to the Static Array Elements via Indices and via Pointers — the Introductory C++ Case // Central European conference on information and intelligent systems / Vrček, Neven ; Guardia, Lourdes ; Grd, Petra (ur.). 2022. str. 507-517

Podaci o odgovornosti

Logožar, Robert ; Mikac, Matija ; Radošević, Danijel

engleski

Exploring the Access to the Static Array Elements via Indices and via Pointers — the Introductory C++ Case

We revisit the old but formally still undecided debate on the time efficiency of accessing the elements of 1D arrays via indices versus accessing them via pointers. To analyze that, we have programmed benchmarks of minimal complexity in the C++ language and inspected the machine code of their 32-bit compilation in the x86 assembly language. Before the performance study, we have briefly compared a few methods used for the execution time measurements. There is no advantage in the use of pointers over indices except for some benchmarks and array (data) types, while for the others, the exact opposite may be true. The parallel aim was to provide a ground for the possible further analysis and measurements of this kind on different computers and platforms, and different languages.

Static arrays ; pointers ; C/C++ ; accessing the array elements ; time measurement and efficiency

nije evidentirano

nije evidentirano

nije evidentirano

nije evidentirano

nije evidentirano

nije evidentirano

Podaci o prilogu

507-517.

2022.

nije evidentirano

objavljeno

Podaci o matičnoj publikaciji

Central European conference on information and intelligent systems

Vrček, Neven ; Guardia, Lourdes ; Grd, Petra

Varaždin: Faculty of Organizaion and Informatics, University of Zagreb

1847-2001

1848-2295

Podaci o skupu

33rd Central European Conference on Information and Intelligent Systems (CECIIS 2022)

predavanje

21.09.2022-23.09.2022

Dubrovnik, Hrvatska

Povezanost rada

Informacijske i komunikacijske znanosti, Interdisciplinarne tehničke znanosti, Računarstvo