[SOLVED] Global variables RAM allocation

Could you please suggest a link to documentation that explains deeply how the optimizer works? Thank you