rename a.out

C++
# Most C compilers provide the -o option for this, such as:
gcc -o gentext gentext.c
cc  -o mainprog -Llib -lmymath firstbit.c secondbit.o
xlc -o coredump coredump.c
Source

Also in C++: