In the broadest sense a compiler is any program that translates between different representations af a program. In that sense one can also consider a decompiler as a compiler.
Also we usually use the term compilation (or more specifically Ahead Of Time and Just In Time compilation) for when we translate bytecode into machinecode.
Also we usually use the term compilation (or more specifically Ahead Of Time and Just In Time compilation) for when we translate bytecode into machinecode.