Package compiler.imcode

Examples of compiler.imcode.ImcCodeChunk


    /* Testni izpis generirane kode za vse funkcije.  */
    Iterator<ImcChunk> chunks = compiler.imcode.Main.chunks.iterator();
    while (chunks.hasNext()) {
      ImcChunk chunk = chunks.next();
      if (chunk instanceof ImcCodeChunk) {
        ImcCodeChunk codeChunk = (ImcCodeChunk)chunk;
        LinkedList<AsmInstr> asmCode = generateAsmCode(codeChunk.lincode, codeChunk.frame);
        System.out.print("\nFUNCTION " + codeChunk.frame.fun.name + ":\n");
        Iterator<AsmInstr> instrs = asmCode.iterator();
        while (instrs.hasNext()) {
          AsmInstr instr = instrs.next();
View Full Code Here


    Iterator<ImcChunk> chunks = progChunks.iterator();
    while (chunks.hasNext()) {
      ImcChunk chunk = chunks.next();
      if (chunk instanceof ImcCodeChunk) {
        ImcCodeChunk codeChunk = (ImcCodeChunk)chunk;
        this.chunks.put(codeChunk.frame.label.name(), codeChunk);
      }
      if (chunk instanceof ImcDataChunk) {
        ImcDataChunk dataChunk = (ImcDataChunk)chunk;
        this.labels.put(dataChunk.label.name(), HP);
View Full Code Here

      return 0;
    }

    if (debug == 1) System.err.println(prefix + "=> " + label + " SP:" + SP + " FP:" + FP);

    ImcCodeChunk chunk = chunks.get(label);
    Frame frame = chunk.frame;
    HashMap<String,Integer> outerTemps = temps;
    temps = new HashMap<String,Integer>();

    // Prolog:
View Full Code Here

    PrintStream xml = XML.open("lincode");
    Iterator<ImcChunk> chunks = compiler.imcode.Main.chunks.iterator();
    while (chunks.hasNext()) {
      ImcChunk chunk = chunks.next();
      if (chunk instanceof ImcCodeChunk) {
        ImcCodeChunk codeChunk = (ImcCodeChunk)chunk;
        codeChunk.lincode = codeChunk.imcode.linear();
      }
      chunk.toXML(xml);
    }
    XML.close("lincode", xml);
View Full Code Here

TOP

Related Classes of compiler.imcode.ImcCodeChunk

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.