Everything anyone ever needs to know about compilation and recompilation:
http://msdn.microsoft.com/en-us/library/cc966425.aspx#XSLTsection127121120120
That link will take you to the section on statement-level recompilation.
Paul White
SQLPerformance.com
SQLkiwi blog
@SQL_Kiwi