Ejemplo n.º 1
0
        public void appendData(DataTableEntry entry)
        {
            entry.baseAddr = staticPointer;

            buffer.put(entry.node);

            staticPointer += wordSize * entry.node.getChilds().Count;
        }
Ejemplo n.º 2
0
        public void generate()
        {
            allocateStatic();

            //assembly.putLine();
            assembly.putComment("Init static data");
            generateStaticInitializer();

            assembly.putComment("Code block");
            generateCodeRoutine();

            assembly.putLine();
            generateModulesRoutines();

            assembly.putLine();
            assembly.putComment("End of program");
            assembly.put(AsmBuilder.label(":end"));
        }