Cover fe ature 47 january 2012 Published by the ieee computer Society 0018-9162/12/$31. 00 2012 ieee



Download 1,78 Mb.
Pdf ko'rish
bet12/32
Sana13.01.2022
Hajmi1,78 Mb.
#355100
1   ...   8   9   10   11   12   13   14   15   ...   32
Bog'liq
Software-for-infrastructure

vector
vp = {


   Point{1,2}, Point{3,4}, Point{5,6}, Point{7,8} 

};

We can represent this in memory as a compact struc-

ture with a handle, as in Figure 2, where the blue box 

represents the overhead required to place memory in 

dynamic storage. This compact layout is found in a tra-

ditional systems programming language, such as C or 

C++. If necessary, it’s possible—at the cost of some flex-

ibility—to eliminate the handle and the dynamic storage 

overhead.

Alternatively, we can represent the vector as a tree struc-

ture, as in Figure 3. This layout is found in a language that 

doesn’t emphasize compact representation, such as Java or 

Python. The fundamental reason for the difference is that 

user-defined abstractions (class objects) in such languages 

are allocated in dynamic memory and accessed through 

references. The compact representation is 11 words, out of 

which nine are required data (the eight coordinates plus 

the number of points). The tree representation is 21 words. 

In the compact representation, access to a coordinate point 

requires one indirection; in the tree representation, access 

requires three indirections.

For languages that are not systems programming lan-

guages, getting the compact layout involves avoiding the 

abstraction mechanisms that make such languages attrac-

tive for applications programming. 


Download 1,78 Mb.

Do'stlaringiz bilan baham:
1   ...   8   9   10   11   12   13   14   15   ...   32




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish