Gas, a contract needs gas to run, and some small amount, a unit, of gas is "burned" or required to fuel a single operation. The cost of an Ethereum contract, the cost to execute that contract is measured in units of gas, which are some division, some fungible measure of an ether, some Ethereum currency unit, or a subdivision of that unit.
How does one calculate the amount of gas needed to run a contract?
In the early stages of exploring this calculation, perhaps we should write some code that calculates the number of operations a contract executes, and then in the future that number of operations can then be converted to some equal units of an ether currency unit, or subdivision of an ether currency unit.
How would one calculate the number of operations in an LLL script, or in an HLL script that runs a contract?
Are we calculating operations of bytecode execution, or operations in the higher level language?