Creating loader and generating opcodes