fcml
1.2.2
|
API for instruction choosers. More...
Go to the source code of this file.
Classes | |
struct | fcml_st_chooser_context |
Instruction chooser context used to communicate with environment. More... | |
Typedefs | |
typedef fcml_ptr(* | fcml_fnp_chooser_next) (fcml_ptr instruction) |
Returns next instructions from the iterator. More... | |
typedef void(* | fcml_fnp_chooser_extract) (fcml_ptr instruction, fcml_st_instruction_code *instruction_code) |
Gets instruction code from current abstract instruction pointer. More... | |
typedef struct fcml_st_chooser_context | fcml_st_chooser_context |
Instruction chooser context used to communicate with environment. More... | |
typedef fcml_ptr(LIB_CALL * | fcml_fnp_asm_instruction_chooser) (fcml_st_chooser_context *chooser_context) |
Instruction chooser function pointer declaration. More... | |
Functions | |
fcml_ptr LIB_EXPORT LIB_CALL | fcml_fn_asm_default_instruction_chooser (fcml_st_chooser_context *chooser_context) |
Default instruction chooser which chooses the shortest instruction available. More... | |
fcml_ptr LIB_EXPORT LIB_CALL | fcml_fn_asm_no_instruction_chooser (fcml_st_chooser_context *chooser_context) |
NULL chooser which do not chose anything. More... | |
API for instruction choosers.
typedef fcml_ptr(LIB_CALL * fcml_fnp_asm_instruction_chooser) (fcml_st_chooser_context *chooser_context) |
Instruction chooser function pointer declaration.
chooser_context | Instruction chooser context. |
typedef void(* fcml_fnp_chooser_extract) (fcml_ptr instruction, fcml_st_instruction_code *instruction_code) |
Gets instruction code from current abstract instruction pointer.
Gets instruction pointer and fills given instruction code holder with the binary code of the instruction.
instruction | Instruction pointer. |
instruction_code | Holder for the instruction code. |
typedef fcml_ptr(* fcml_fnp_chooser_next) (fcml_ptr instruction) |
Returns next instructions from the iterator.
Instruction chooser uses this function to get next instruction from the chain.
instruction | Current instruction. |
typedef struct fcml_st_chooser_context fcml_st_chooser_context |
Instruction chooser context used to communicate with environment.
fcml_ptr LIB_EXPORT LIB_CALL fcml_fn_asm_default_instruction_chooser | ( | fcml_st_chooser_context * | chooser_context | ) |
Default instruction chooser which chooses the shortest instruction available.
chooser_context | Instruction chooser context. |
fcml_ptr LIB_EXPORT LIB_CALL fcml_fn_asm_no_instruction_chooser | ( | fcml_st_chooser_context * | chooser_context | ) |
NULL chooser which do not chose anything.
chooser_context | Instruction chooser context. |