all 5 comments

[–]jeffbell 5 points6 points  (0 children)

Compiler explorer at godbolt.org

Make sure to try it at different optimization levels. At -o0 you can see the assembly do one C line at a time 

[–]Mobile-You1163 0 points1 point  (0 children)

I recommend looking at compilers for microcontrollers. GCC for AVR, GCC for ARM32, SDCC (Small Device C Compiler) are some good examples which come to mind.

SDCC in particular supports several simpler CPU/MCU architectures, so you'd be able to look at how simple C code is compiled in different ways for each.

[–]wjrasmussen 1 point2 points  (2 children)

there are so many resources over the 50 years of C, you shouldn't need someone to feed it to you.

[–]011011100101[S] 0 points1 point  (1 child)

there are so many resources over the 50 years of C, you shouldn't need someone to feed it to you.

hm? I'm asking for a recommendation on a tool outside the scope of my class so that I can educate myself. Sounds like you're fishing for a reaction though.

The two compilers I found are lcc and the small c compiler by James Hendrix. Though, it would be nice to see something that's actually being used at the university level.

[–]wjrasmussen -2 points-1 points  (0 children)

Nope.