The default command executed through the compile function is:
clearmake -k
It will remind you of unsaved buffers, remember your last arguments, allow you to scroll into your errors, etc.
Note that it works by default in the view of the emacs process!