In ethereum we have opcodes which provide access to things like state at execution time. Is there documentation on what is available for solana programs?
I'm specifically interested in hooks that provide information on transaction fees.
Here is the list of available opcodes:
https://github.com/solana-labs/rbpf/blob/main/src/ebpf.rs
Most opcodes have a cost of 1 CU. Using the call instruction to invoke syscalls is a special case. The cost of syscalls is defined by the compute budget table.
https://github.com/solana-labs/solana/blob/master/program-runtime/src/compute_budget.rs