06.01.2015 Views

IMPARARE IL C++ in 6 ore? - INFN

IMPARARE IL C++ in 6 ore? - INFN

IMPARARE IL C++ in 6 ore? - INFN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Memoria usata<br />

• Stack variabili locali di funzioni cancellata quando la funzione<br />

f<strong>in</strong>isce<br />

• Code space riservata al codice<br />

• Global space name variabili globali del programma<br />

• Registro funzioni <strong>in</strong>terne come per esempio mantenere traccia<br />

dell’<strong>in</strong>izio dello stack.<br />

• Free st<strong>ore</strong> tutto il resto che viene cancellato alla term<strong>in</strong>azione del<br />

programma<br />

Primo problema:le variabili locali non persistono e<br />

l’uso di variabili globali rende difficile da mantenere<br />

il codice.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!