Evolution of adult size and offspring size is considered with the aid of an optimal energy allocation model in which, in contrast to existing allocation models that apply a purely energetic definition of fitness, the amount of energy allocated to reproduction is divided into quanta dependent on offspring size, and net reproductive rate is maximized. This approach enables the connection between adult and offspring size to be identified: larger offspring make it optimal for their mothers to have larger adult size. Optimal offspring size exists in the range of sizes for which the ratio of production rate to mortality rate is concave upward with respect to body size. If such a range does not exist, it is optimal to produce the smallest viable offspring. Optimal adult size exists in the range of sizes for which the ratio of production rate to mortality rate is concave downward. If such a range does not exist, it is optimal to have the largest viable adults. The shape of the function representing the ratio of these two rates changes if a new size-specific predator invades the system: then, a macromutation abruptly changing either initial size or adult size can be preferred by natural selection. Possible mechanisms of such macroevolutionary changes are discussed. In the modern world, in which many small and large species with various offspring sizes exist, replacement of one species by another is expected after invasion by a size-selective predator.