DLS full algorithm compiling