1) Get rid of as many fixed size arrays as possible. Use obstack, malloc or alloca as required.