1. A method of compiling object-oriented source code, comprising: compiling, by a compiler, object-oriented code comprising objects each having at least one associated method; and while compiling the object-oriented code, determining whether a size of each of the objects should be changed.