ARM generates an ELF as the output on compilation and linking.
The compiler options are embedded in the header of the ELF.
Google "ELF structure" for more information.
You can use toolchains like "fromelf", "objdump" provided by GCC as well to extract the ELF information and print into the readable format.