If the A/C is out of freon, the low limit switch will not allow the compressor to turn on unless there is a short in the switch. If the compressor is making weird sounds, you should unplug it because of the mechanical damage as someone else stated.
If your compressor was bad and filled your system with metal, it must be flushed out with solvent and replace the expansion valve or orifice tube/accumulator otherwise the new compressor will fail from contaminants.
Some of the biggest issues with A/C is networking through the ECM, and the A/C is disabled due to electrical issues. This can be difficult to diagnose and sometimes expensive. I learned this in college and I am currently ASE Certified.
The computer will turn off the A/C compressor when you are accelerating to conserve power and aid in fuel economy, that is why the ECM is involved with the A/C compressor. There is also a (clamping) diode to prevent a spike of electricity from frying the computer.