News for hackers. Stuff that matters.
Re:How it works: Compiler Explorer by ziotom78 on Saturday February 03, 2018 @07:46AM (#16297406)
Thank you for creating this nice tool! I am teaching a C++ class, and sometimes I connect to Compiler Explorer in real time to explain how things are translated into low-level operations. I found this approach eye-opening for students, as it removes some of the «magical» aura modern compilers have in the eyes of the class.
Re:How it works: Compiler Explorer by sannee on Saturday February 03, 2018 @08:23AM (#16297513)
> it removes some of the «magical» aura modern compilers have in the eyes of the class.

Reading compiler output after adding -O3 seems to add magical aura in my case :)

Re:How it works: Compiler Explorer by ziotom78 on Saturday February 03, 2018 @10:09AM (#16297884)
Agreed! :-) However, making students see how complex constructs translate into a sequence of simple assembler operations helps a lot in understanding what compilers are all about.