A New Approach to Compilations