public void writeEnvironment(StringBuilder code, Environment env) {
		for (Environment.EnvironmentEntry ent : env) {
			if (ent.loc.type != Location.LocationType.HeapLocation)
				continue;

			if (ent.val.type instanceof ArrayType) {
				ArrayType t = (ArrayType) ent.val.type;
				int min = Math.min(t.min, 0);
				int i = t.min;

				for (; min <= t.max; min++) {
					String lb = (min == 0 ? ent.loc.getLabel() : spc);
					String cmt = (min == t.min ? "; " + ent.val.name : "");

					code.append(lb + " DC "
							+ getValue(ent.defaultValue, min - i) + cmt + "\n");
				}
			} else if (ent.val.type instanceof FunctionType) {
				continue;
			} else {
				code.append(ent.loc.getLabel() + " DC "
						+ getValue(ent.defaultValue, 0) + "; " + ent.val.name
						+ "\n");
			}
		}
	}