Gestion of memory and register