)*+,-./0123224554645572 89-:.;;.*<2 .;2 /-=<192 1*2 "*+,>2 .;1-.?'192 =<!*-2 :*.,2 10.;2 *"':9<12 '<9-2 1092 19-:;2 *2 1092 @AB2 -992 C*"':9<1=1.*<2 D."9<;9>2 E9-;.*<2 42 *-2 =<,2 F=19-2 G9-;.*<2 +'?F.;092 ?,2 1092 -992 H*1=-92 *'<=1.*<$2 .102 <*2 I<G=-.=<12 H9"1.*<;>2 <*2 -*<16)*G9-2 J91;>2 =<2 <*2 ="K6)*G9-2 J91;2 L2 "*+,2 *2 1092 F."9<;92 "=<2 ?92 *'<2 =1M2 011+M!!/<'*-/!F."9<;9;!F01:FJ)2 23455464557389:;<3=>?<@AB3C@D9EF<3G<:FE9H<E . CMHKM d] g g gg .233. g ggg g g g gg d XX]X]]d] gg gg g gggg / KHK XXXd g g g ggg ]XX] ]X g gg g 0 KHK XX]]]d XXd g gg gg g3 g ggggg !" 89 89 1 KHK XX]]]d XXd] gg#g gg 2 KHK XX]]X]Xd g gg g $%gg& 3. ]X]Xd gggggg g g g g 89 89 3 KHK XX]]X]Xd g g gg gg#ggg gggggg gg 4 KHK XX]]Xd g g g g#g .233..22$'& g g g$& 89 89 .5 HKCKK MKKKHKCKKKKK Xd]X]XXXd]dXd g( g gg gggg g Xd]X]XXXd]XXd ggg g 'g ggg ! 89 .. NKHKKCMHKCK MFKM XXd gggg()*+++, g)+++)-+. gg/0*,012ggg g$ " & ! % "8 #$" 8 89 % .6 NKHKKCMHKCK MFKM KNK XXd gg g g g g ! % "8 #$98 & "8 #$" # 89 % ' ./ MFKM ]]]XdX] XX X]]d]X]dX dX]] X]]]d] Xd]X]dX]]XX gg gggggggg g g .2 MFKMHKKKMK dXd]dX dXd]d]dX gg gg (ggg g gg d 'ggggg g 'g .3 MFKMFKFMHKFNKF X gg gggg g g g (gggg g XX ggg gg g .4 MFKMFFCKKMKK XXd g$ ++& g gg gg g XX , ( 8$ , ( 8$ -, ( 8$ )89 * 8+ g ggg gg , 65 MFKMFFCKKMKK Xd]dX (g ggg gg , XX]dd dX g g gg !" ) !88 )89 * 8+ 6. CFNNFKMKCF dXd]] XXd]X g ggg ( g g g3 3.3.2.3 d ( 8$ )89 * 8+ g g ( g (g g(g g g$g g& 66 MFKMFFCKKMKHKFNK XXd g$3g&g g gggg gg g gg ggg XX statica gggg 6/ MFKMFFCKKMKHKFNK ( ( )#*# )#*# ($ ( ( ( ( )#*# ($ )#*# ($ ( ( ( )#*# ($ $./$ ($ ! 67 CFNNFKMCF !d g g g g ggg g ( 3.3.2. .3 d g .33 gg g . .3gg 60 MNFFKM d Xd (gggg gg (ggg33. g g gg ggg ggg (gggg g g !dX (g g ggg$ & gg3 g g ggg g 61 MNFFKM ( )#*# ( ( ( ( ( )#*# )#*# )#*# ($ ($ ($ ( ( ( ( ( ( ( )#*# )#*# )#*# ($ ! 9 0 8 ($ 62 Allocazione dinamica (o a part. dinamiche) "d Xd]X]Xd]X]]dd]Xd]]#]d] XX ]]]X $X]$X %]$X ggggg ggg 4g4 ggg gg gg dX 5,4(gggg g g gg gg g4g4 /7 Allocazione dinamica (o a part. dinamiche) ]$X dX 4g4g gg g g gg 4g4g g ggg &d]X ggg g gggg g dX gggg g 4g674 ggg /0 FKFKM !d $gg & g g g g g !XXd (g g g g g $ & g g gg#g /2 FKFKM "d] Xd]X]XXXd]dXd]X]] dd "]dX]XX 3. 3. 'd]] dd]X]dd]X]dX gg g gg g gg /3 FKFKMNKM (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX ((WX ((WX ((WX ((WX ((WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX (WX U! $ V8 ($ ($ ($ ($ ! ($ /4 FKFKMNKM 89 $ 89 $Z $ $ $ UV8$88 8 Z98$ Z98$ 8 Y Z98$ 8 Y 75 KNKMH FK d]X]]XXd]] X( gg ggg gg gg! gg gg gggg ggg g897:97297 7. AMCMFCHFCCFKFKM $ ZZ8 $Z Z98 Z ZZ8 [ Z UV8$88 8 76 N NFKMH FFF d]]]]] X( dXd]) ]XX]XX g gg3 g '$%'& g g 29gg;: g8$8+*20+<=1& dXd]* ]d]X]dX g g gggg> gg gg g 7/ ANFKM ]]X]d]Xd ggg (gg Xd g, g g$g & ggg$gg& g gg g g6#g g 72 ANFKM ]]X]d]]Xd g ( (g g$ & gg (gg.$g & .3 gg g( ?.2 .. .@ ]] dd]d]]d Xd]]XXXd]X]] d]X]X 73 ANFKMFKFKM !XXd Xd ( + gg g+ g g g $+& g g g g + 1297!87 8!297 74 AMCMFCHFCCNFKM ZZ8 898 [ 9 V8 V 898$ V8 & ' 05 ANFKMMHKKKM "]Xd]d]]dXXXd]X]dX]]X Xd ]Xd]dXXd ( )89#$ 8 \$( )]$( 8 \ )] % ( )89#$ 8 \$( )]$( 8 \ % )] 0. ANFKMCFNNFKM !d g g( g g gg (g $++4g4& ]d+]dXd]X] dX] X, 06 ANFKMFKFKM Xd]]-] XXd (g g g g$g & ./XXX]0 'ggg gg XX $g& $g g& 0/ NMCKFKCF XXXd (g g g dXXdX g ggggg $ g &3 g g gg gg $& 07 NMCKFKCF ./XXX]X]X]X]1d] gggg g 2222 (ggg g g ggg .3.3.. gggg gg g gg $++ g& 00 NMCKFKCF Xd g 3223.23. gg gg g g gg gg gg gg gg gg gg g( gg ggg 01 NMCKFKCF !XXd]]XX]34 ]]] X g g gg $g&(g g gg 'd]] dd]]X]]]] X]d]X]dX gggg$3.23& ++$3.&gg ggg 02 NMCKFKCF NKM V$+` Z98 + 1 + ^ \ ' - - _ 2 + + 1 (8$UV8 ^ \ ' _ 2 % 89 1 89 8 89 8 03 KMHKFF dXd]]X]dX]X] X]5]X]XXd]] X]) 1 ^ \ ' - _ 2 89 1. KMHKFF "]6]d ]]] X])]d]#]X]dX] XX V$+` Z98 + 1 ^ \ ' - _ - 2 89 + + + 16 KMHKFF 1X]d]] ]7 ]78]]X]d]]2d2 V$+` Z98 + 1 ^ \ ' - _ - 2 89 + + + )#*# 1/ KMHKFF ]2d2]]X]dX]dX]] X]]X 1 ^ V$+` Z98 + + + \ ' - _ - 2 89 ^ \ ' _ 2 89 8 + 1 )#*# 17 KMHKFF ]2d2]X]]dX] XX ]d]X] dd]] X 1 ^ V$+` Z98 + + + \ ' - _ - 2 89 1 ^ \ ' _ 2 )#*# 1 % ^ - 89 8 + - 89 8 10 KMHKFF ]2d2]Xd]] ]]X]dd]d dd ]XX]Xd 1 V$+` Z98 + + + \ + ' - _ - 2 ^ 89 1 ^ \ ' _ 2 )#*# 1 % ^ - 89 8 + - 89 8 11 KMHKFF d]]X]]X]]XX( ggAggA g AA dXX]X]dXXd]d]X Xd g ggg 12 MCKNMH NFKNMHKHNFHFK / gg /g g g g g g g g$A A& A A(gg gg $g g& +gg $g & B$g& +g )g 13 MCKNKHKCKNKFFNM 9XXX 1Xd g g g g 322.. g X]X]XXX gg gg g gg gg 14 MCKNKHKCKNKFFNM d ggg g g g Xd ggg $ & =8*8;:<*;*2:8;***;8:88:*;8==88 ggg $ 81& =*8:*;*2:;*;:8:*8=8 25 MCKNKHKCKNKFFNM d]X] ]]X]Xd]]d]X] g g+++ g(C !98 $ 8$Z! !98 $ $Z98 2. MCKNM! XXd 1X D(3ggg E g gg g g ggggg#g X g g 26 MCKNM!NKM" XX gg g; g8<$:* g& 89 Z89# 8$$ 989 # 2/ MCKNM!NKM# XX gg g; gF$8: g& 89 Z89# 8$$ 989 # - - - - - - - - 27 MCKNM!NKM$ XX gg g2 g8*G$8: g& g( G 89 Z89# 8$$ 989 # - - - - - - - 20 MNF KFHK FH% ]X]dXX]X]X Xd ( gg g $++4/4& 'd]dd]XXd]X]X]dX]X]] - 21 MCKNM&!KNF XXd g3 gg3g dXXdX ( gHg g (g ggHgggg ggg ggg gg gggggg g g g 22 MCKNM&NKM XX gg g; gF$:* g& 89 Z89# 8$$ 989 # a!./$ 9 $ 8 b 23 MCKNM''F %H XXd ( g dXXdX (gggg g g 24 MCKNM'NKM XX gg g; g8:$:* g& 89 Z89# 8$$ 989 # a!./$ $ .!9 $8 b 35 MCKNM'N NFKM ]Xd]d] XXd] dd]0 "]6] ggg ! ! g g g g d gg#g$#gg& gg g gg g g ggg B)' 3. MCKNM'N NFKM Xd]]]: g $ g& gg g g d g g !g g 1g B)' g g#g 36 CMKNFC' XXd;.;X;dX gg gAAgg ggg$+8** & 0AgAg gggg g gg + (g g>g3 4/4 ) $ $c ) $ $c ! + $+ 8$8Z#$V 32 CMKNFC' d;]dX g g ggggg g g(8 XXd g gg gg g g ($gg8& gg * ($gg*& ( 33 CMKNFC' dXXdX ( g 4/4 g(3A3A $&> g g 4/4 Xd ( g g3 g' 34 AMHFNKM ( 9 ( +9 45 MFKM dXd]X]dXd]3 ]dX]X4 g ggg g g dXd]d g ggg dXd]d ggg g $ & gg3 4/ (CFK XXXd g$ &(g gg !dXXX] gg Aggg A ++gg gg gg $g( ggg g&g 47 (CFK Xd gg %'( g gggg gg ggg++++ '5)))G gg3 g g g3 gg 40 (CFK 41 )MC*KA XXXd 2 .22. 32I gIgg dXXd (ggg 3 gIgg gg #g>(g Xd ]<]=]> [$333$d [$33$d 42 )MC*KA d]]X]&d:X]( g(#g( g AA+++ #gg gg g g gg g (g 44 odulo 8:Memoria secondaria 89-:.;;.*<2 .;2 /-=<192 1*2 "*+,>2 .;1-.?'192 =<!*-2 :*.,2 10.;2 *"':9<12 '<9-2 1092 19-:;2 *2 1092 @AB2 -992 C*"':9<1=1.*<2 D."9<;9>2 E9-;.*<2 42 *-2 =<,2 F=19-2 G9-;.*<2 +'?F.;092 ?,2 1092 -992 H*1=-92 *'<=1.*<$2 .102 <*2 I<G=-.=<12 H9"1.*<;>2 <*2 -*<16)*G9-2 J91;>2 =<2 <*2 ="K6)*G9-2 J91;2 L2 "*+,2 *2 1092 F."9<;92 "=<2 ?92 *'<2 =1M2 011+M!!/<'*-/!F."9<;9;!F01:FJ)2 23455464557389:;<3=>?<@AB3C@D9EF<3G<:FE9H<E . CCGG VV .5 G VW V !"# $%##&'##"#### .. .6 GG VW ! "##$%"$&'&'# ( ! &$ 5 P 7 7 4 47 455 ./ W) .7 GG VW ! "##$%"$&'&'# ( ! &$ 5 P 7 7 4 47 455 .0 *VW+ ,V ( VW ) .1 GG VW ! "##$%"$&'&'# ( ! &$ 5 P 7 7 4 47 455 .2 -./ *++, ( .3 GG VW ! "##$%"$&'&'# ( ! &$ 5 P 7 7 4 47 455 .4 GGG ( -- 0 ( - 65 )*+,-./0123224554645572 89-:.;;.*<2 .;2 /-=<192 1*2 "*+,>2 .;1-.?'192 =<!*-2 :*.,2 10.;2 *"':9<12 '<9-2 1092 19-:;2 *2 1092 @AB2 -992 C*"':9<1=1.*<2 D."9<;9>2 E9-;.*<2 42 *-2 =<,2 F=19-2 G9-;.*<2 +'?F.;092 ?,2 1092 -992 H*1=-92 *'<=1.*<$2 .102 <*2 I<G=-.=<12 H9"1.*<;>2 <*2 -*<16)*G9-2 J91;>2 =<2 <*2 ="K6)*G9-2 J91;2 L2 "*+,2 *2 1092 F."9<;92 "=<2 ?92 *'<2 =1M2 011+M!!/<'*-/!F."9<;9;!F01:FJ)2 23455464557389:;<3=>?<@AB3C@D9EF<3G<:FE9H<E . A+,-+% :? 6 ,-+ 7 &- 0 1 !"#$$ %& 2 !"#" '( $% )) 3 &!' #! &*+* #,-./.0!1 ()*+, #,-./.0!1 &#! -+,+ **2.$/ 4 . $, $, .5 A /"programmatore 60 A 3 ( 4 ( + .. A . 2.$/-"56," - 7-"-7" .6 A %01% " 2. 3. . 4 4 44 44444 4 .7 \\ !4 8 8 8 .0 \\\ 5 25 $ 39 4: +: ;; 34 ++ <<<+&<< 99 == ++ .1 # .2 \ 6. # .4 \ ! 65 \ 4 4 4 4 4 6. \\\\ $6% .. '> 01 66 \\\\ 4 4 4 4 4 6/ A 3. 60 2 61 \ ! '> -0? !" -0? # # $ # % 4 62 \ ! -0? " "4& % 4& ' 4 ' % (4 ) % 63 \ . 64 \ 2 @8 (@A ( 7 6 /5 \\ ( 25627 96 46: ;64< .. <56<7 <96= ( 4=64> ?F*"K72*;91!?F*"K;.N9$2 +*;72*;918?F*"K;.N9$ ) * % % + /. \\ !.. @ @ 8 B /6 \\\ @ , 4 567 4 + - ) * % + 96 444 // \\\ .. @(C) !.. @ @ :34 @' /7 \\\ &% .. ;&3D !.. /0 \ 444 (./ , 4 567 4 96 + ) * % + - /1 \ .. !.. E!1F .. E!1 F>(' $ #! /2 \\ 444 ) * 1 $ 2 567 96 00 ,0+ $00 -0 /3 \\ .. @ @ ( !.. @ 8'9 /4 \\ ( 444 ) * 1 567 0$0 404 0+0 ,02 00 404 96 7. \\ ! -: 5< 5 1 3 . 3 4& %4 34 /4 3 1 3 3 3 1 1 1 3 76 " 9 3 $ + - , 2 4 $ $ + - , 2 4 $ $ $$ $ 77 " .. !.. ' $&9+&D-D&949 @ 8 70 "#\\ E!1 444 (./ , 4 567 96 4 + ) * % + ( 4 71 "#\\ .. !.. @@ @ 72 "#\\$\\%& ( 4 $ $ 4 - -- -4 $ $, 4, $ + 4+ - 4 +- - 4- $$ $2 2 4 4 73 "#\\$\\%& .. G !.. @@ @ 74 "'\ 2 44; J443 J49;& J4-0 0;1 3DI0 & 3H 44;J44;K+ J;&-0E!1 0 %1 05 "'\ !. > 4H Block size L3==:54994!8"1 0. \ - ! 5 06 \ 4 -"56," .' 44 4 44 G 2.$/ 0/ \ 2 .% .% > 5 .% > 07 \ L3==:54994!8"1 00 \\\\ 3 ( ( 02 \\\\ <3 @ 8 > 6!IG-"56," 03 () . 5 5 3 ) 5e 6 6 3 ) 3 ) " 5e 6 6$ 3 ) " 5e 6 6 04 *AA &*+ 3453D -"56,"M=:+4 M=& L3==:54994!8"1 12 *AA 6 9:H0 3H0 4H0 ;H0 &H0 3DH0 +4H0 E!1534 4-0 ;-0 &-0 3D-0 E!153D E!15+4 34&-0 4:D-0 :34-0 394;-0 49;&-0 310 410 410 410 13 *+,-. % ) )74 !%35%7 14 * !/0 25 * !/0 2.