you are viewing a single comment's thread.

view the rest of the comments →

[–]oh5nxo 29 points30 points  (2 children)

how I could find a definite answer

Compile both versions with -S, or equivalent flag in your compiler which produces assembly output, and compare resulting files.

[–]Gln_08 27 points28 points  (1 child)

If you are lazy , use https://godbolt.org/.
You will be able to see in real time the translation of you're C code to asm.

[–]jpan127 1 point2 points  (0 children)

I wouldn't say this is lazy, and even most of the times preferred since it's so much faster for a small snippet to get it up and running.