Bremsstrahlung emission from nuclear reactions in compact stars