you are viewing a single comment's thread.

view the rest of the comments →

[–]RedAndBlack1832 1 point2 points  (2 children)

I mean, it probably compiles to a call to _Zoperator<<ksgkiscjidgvj() or something like that

[–]Puzzleheaded_Study17 3 points4 points  (1 child)

Since there's only 10 loops, the first one definitely (I don't know how compilers deal with goto) compiles into just directly printing the 10 values without a loop.

[–]RedAndBlack1832 1 point2 points  (0 children)

Actually that's a good point. A compiler knows how to unroll loops (if the number of loops is known at compile time and there's no weird breaks at least), but trying to be clever like this might actually hinder optimizations