How can I get the .hex and .cpp files of my project?

main.cpp:

#include <Arduino.h>
int main(void)
{
	init();
#if defined(USBCON)
	USBDevice.attach();
#endif
	setup();
 	for (;;) {
		loop();
		if (serialEventRun) serialEventRun();
	}
	return 0;
}