The present disclosure relates to whole program analysis and, more
particularly, short data optimization obtained through whole program
analysis. In one embodiment, short data optimization is achieved by
analyzing the program to estimate the size of existing short data and the
size of any linkage tables, providing the size estimates to a compiler
that is to compile the program, and compiling the program with the
compiler in view of the size estimates such that a relatively large
amount of data is allocated to a short data area.