There many attempts to get proofs for compilers for popular languages, C or Ada for example:
http://portal.acm.org/citation.cfm?id=1315602
http://pauillac.inria.fr/~xleroy/publi/compiler-certif.pdf
In theory, proving correctness is a good way to go. In the real world, it's not remotely viable.