public String ecrireMips() {
        String str = "";
        TDS tds = TDS.getInstance();
        for(Declaration d : declaration){
            if(d instanceof D_Champ){
                Symbole s = tds.identifier(new Entree(((D_Champ) d).idf, 0, "entier"));
                if(s.isGlobal()){
                    str+=d.ecrireMips();
                }
            }
        }
        for(Declaration d : declaration){
            if(d instanceof D_Champ){
                Symbole s = tds.identifier(new Entree(((D_Champ) d).idf, 0,"entier"));
                if(!s.isGlobal()){
                    str+=d.ecrireMips();
                }
            }else
                str+=d.ecrireMips();
        }

        return str;
    }