Advanced reticle enhancement using full-chip source-mask optimization (SMO) jointly optimizes the lithography system's illumination source shape together with the mask pattern across an entire chip design, rather than optimizing the mask alone against a fixed, pre-determined illumination source. Extending SMO to full-chip scale, rather than only to isolated critical test patterns, is computationally demanding, since the optimization has to account for the enormous variety of pattern geometries present across a real chip design, but captures printing improvements a mask-only optimization against a fixed source shape cannot achieve.