Pretražite po imenu i prezimenu autora, mentora, urednika, prevoditelja

Napredna pretraga

Pregled bibliografske jedinice broj: 1217578

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


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 // Proceedings - 33rd International Scientific Conference on Information and Intelligent Systems (CECIIS) / Vrček, Neven ; Guardia, Lourdes ; Grd, Petra (ur.).
Varaždin: Faculty of Organizaion and Informatics, University of Zagreb, 2022. str. 507-517 (predavanje, međunarodna recenzija, cjeloviti rad (in extenso), znanstveni)


CROSBI ID: 1217578 Za ispravke kontaktirajte CROSBI podršku putem web obrasca

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

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

Vrsta, podvrsta i kategorija rada
Radovi u zbornicima skupova, cjeloviti rad (in extenso), znanstveni

Izvornik
Proceedings - 33rd International Scientific Conference on Information and Intelligent Systems (CECIIS) / Vrček, Neven ; Guardia, Lourdes ; Grd, Petra - Varaždin : Faculty of Organizaion and Informatics, University of Zagreb, 2022, 507-517

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

Mjesto i datum
Dubrovnik, Hrvatska, 21.09.2022. - 23.09.2022

Vrsta sudjelovanja
Predavanje

Vrsta recenzije
Međunarodna recenzija

Ključne riječi
Static arrays ; pointers, C/C++ ; accessing the array elements ; time measurement and efficiency
(Static arrays ; pointers ; C/C++ ; accessing the array elements ; time measurement and efficiency)

Sažetak
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.

Izvorni jezik
Engleski

Znanstvena područja
Računarstvo, Interdisciplinarne tehničke znanosti, Informacijske i komunikacijske znanosti



POVEZANOST RADA


Projekti:
UNIN--UNIN-TEH-21-1-12 - Analiza mogućnosti distribuirane obrade podataka u specijaliziranim znanstveno-inženjerskim programskim jezicima i razvojnim okolinama MATLAB, Scilab i GNU Octave (ADDPinMSGO) (Logožar, Robert, UNIN ) ( CroRIS)

Ustanove:
Fakultet organizacije i informatike, Varaždin,
Sveučilište Sjever, Koprivnica

Profili:

Avatar Url Danijel Radošević (autor)

Avatar Url Matija Mikac (autor)

Avatar Url Robert Logožar (autor)

Poveznice na cjeloviti tekst rada:

Pristup cjelovitom tekstu rada archive.ceciis.foi.hr

Citiraj ovu publikaciju:

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 // Proceedings - 33rd International Scientific Conference on Information and Intelligent Systems (CECIIS) / Vrček, Neven ; Guardia, Lourdes ; Grd, Petra (ur.).
Varaždin: Faculty of Organizaion and Informatics, University of Zagreb, 2022. str. 507-517 (predavanje, međunarodna recenzija, cjeloviti rad (in extenso), znanstveni)
Logožar, R., Mikac, M. & Radošević, D. (2022) Exploring the Access to the Static Array Elements via Indices and via Pointers — the Introductory C++ Case. U: Vrček, N., Guardia, L. & Grd, P. (ur.)Proceedings - 33rd International Scientific Conference on Information and Intelligent Systems (CECIIS).
@article{article, author = {Logo\v{z}ar, Robert and Mikac, Matija and Rado\v{s}evi\'{c}, Danijel}, year = {2022}, pages = {507-517}, keywords = {Static arrays, pointers, C/C++, accessing the array elements, time measurement and efficiency}, title = {Exploring the Access to the Static Array Elements via Indices and via Pointers — the Introductory C++ Case}, keyword = {Static arrays, pointers, C/C++, accessing the array elements, time measurement and efficiency}, publisher = {Faculty of Organizaion and Informatics, University of Zagreb}, publisherplace = {Dubrovnik, Hrvatska} }
@article{article, author = {Logo\v{z}ar, Robert and Mikac, Matija and Rado\v{s}evi\'{c}, Danijel}, year = {2022}, pages = {507-517}, keywords = {Static arrays, pointers, C/C++, accessing the array elements, time measurement and efficiency}, title = {Exploring the Access to the Static Array Elements via Indices and via Pointers — the Introductory C++ Case}, keyword = {Static arrays, pointers, C/C++, accessing the array elements, time measurement and efficiency}, publisher = {Faculty of Organizaion and Informatics, University of Zagreb}, publisherplace = {Dubrovnik, Hrvatska} }




Contrast
Increase Font
Decrease Font
Dyslexic Font