browneyes - the gcc solution given will help you churn out plenty of examples of C code converted into assembly, but I suspect it won't help you too much with learning.
My advice would be to focus on learning an assembly language (preferably the one for your architecture
), some of the instructions, and how to do some of the simple things you might be used to from other languages. I have never found it too useful to learn by comparing similar programs in two languages, simply because it's not always possible to find a direct correspondence. Some things that are very simple in C are complicated in assembly, while some things that are very simple in assembly are more complicated in C. Being a lower-level language, there are some things you can do in assembly that you can't do at all in C (though don't ask me to name any of them!)
I think you'll find that once you get a good grasp of the basics, you'll be able to see the correspondences on your own, and (even better) begin to utilize the strengths of assembly itself, rather than seeing it as merely a translated C.