18.11.2014 Views

Langages de l'informatique

Langages de l'informatique

Langages de l'informatique

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.

La mémoire globale<br />

<strong>Langages</strong> <strong>de</strong> l’informatique<br />

Introduction<br />

Les langages<br />

Patrick Bellot<br />

Les paradigmes<br />

Modèle impératif abstrait<br />

Boehm et Jacopini<br />

Programmation impérative<br />

Programmation fonctionnelle<br />

Programmation en logique<br />

Gestion <strong>de</strong> la mémoire<br />

Quatre types <strong>de</strong> mémoire<br />

Gérer sa mémoire<br />

Comptage <strong>de</strong> référence<br />

Syntaxe et sémantique<br />

Sémantiques<br />

Analyse lexicale<br />

~A<br />

Analyse syntaxique<br />

{<br />

Compilation countA-- ;<br />

Interprétation }<br />

}<br />

Machine p. 88 - Licence virtuelle<strong>de</strong>s droits d’usage en page 2.<br />

En orienté objet, la mémoire globale est la mémoire<br />

allouée pour les variables <strong>de</strong> classe, i.e. les variables<br />

déclarées static dans les classes.<br />

class A {<br />

private:<br />

static int countA = 0 ;<br />

public:<br />

A()<br />

{<br />

countA++ ;<br />

}

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

Saved successfully!

Ooh no, something went wrong!