Certain aspects of a method and system for independent in-phase and quadrature loop amplitude control for quadrature generators may include determining an amplitude voltage associated with an in-phase component and a quadrature component of a generated signal. The phase of the input I and Q signals is determined using the principle that the phase is equivalent to arctan. Comparison of such spectra along a range of traverse allows precise estimates of distance to be made. Instruction DAG scheduling is then performed using information about the clusters to generate an ordered intermediate representation of the source code. The power supply may mobile or stationary, such as a battery or line current.