import java.io.Writer;
import java.io.PrintWriter;

public class SimpleIA32Generator extends AssemblyGenerator {
	public int getSystemIntSize() {
		return 4;
	}

	public int getPointerSize() {
		return 4;
	}

	public int getFunctionSize() {
		return 4;
	}

	PrintWriter out;

	public void generateAssembly(Writer out,
	StaticVariable[] staticVariableDefinitionList,
	Function[] functionDefinitionList) {
		this.out = new PrintWriter(out);
		this.out.println(".section .text");
		for (int i = 0; i < functionDefinitionList.length; i++) {
			generateFunction(functionDefinitionList[i]);
		}
		this.out.flush();
	}

	private void generateFunction(Function func) {
		out.println(".globl " + func.getName());
		out.println(func.getName() + ":");
	}
}

@@ -431,16 +431,33 @@
 er(out);
+%0A%0A%09%09// %E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%82%92%E5%87%BA%E5%8A%9B%E3%81%99%E3%82%8B
 %0A%09%09this.
@@ -599,16 +599,281 @@
 %5D);%0A%09%09%7D%0A
+%0A%09%09// %E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E9%A0%98%E5%9F%9F%E3%82%92%E5%87%BA%E5%8A%9B%E3%81%99%E3%82%8B%0A%09%09this.out.println(%22.section .bss%22);%0A%09%09for (int i = 0; i %3C staticVariableDefinitionList.length; i++) %7B%0A%09%09%09StaticVariable sv = staticVariableDefinitionList%5Bi%5D;%0A%09%09%09this.out.println(%22.comm %22 + sv.getName() + %22, %22 + sv.getDataType().getWidth());%0A%09%09%7D%0A%0A
 %09%09this.o

add static variable generating