opcodes cost gas.<p>More in depth [1] and in the yellow paper linked in the stack exchange question.<p>[1] <a href="http:&#x2F;&#x2F;ethereum.stackexchange.com&#x2F;questions&#x2F;52&#x2F;how-were-gas-costs-chosen-for-the-ethereum-virtual-machine-instructions&#x2F;132" rel="nofollow">http:&#x2F;&#x2F;ethereum.stackexchange.com&#x2F;questions&#x2F;52&#x2F;how-were-gas-...</a>