Morse code is a method of encoding words that was invented in the 19th Century as a way of transmitting messages over long distances. This was before the era of telephones and way before smartphones!
The compiler analyzed it, optimized it, and emitted precisely the machine instructions you expected. Same input, same output.