C language > Beginner questions

Fcml error

(1/1)

Jokaste:

--- Code: ---
/* All currently supported encoding phases. */
fcml_ien_asm_part_processor_phase fcml_iarr_asm_executed_phases[] = { FCML_IEN_ASM_IPPP_FIRST_PHASE, FCML_IEN_ASM_IPPP_SECOND_PHASE,
        FCML_IEN_ASM_IPPP_THIRD_PHASE };


fcml_nuint8_t fcml_ifn_asm_calculate_instruction_parts_length( fcml_ist_asm_instruction_part *instruction_part, fcml_int parts_num ) {
    fcml_nuint8_t length = { 0, FCML_TRUE };
    while ( parts_num-- > 0 ) {
        length.value += instruction_part++->code_length;
    }
    return length;
}

--- End code ---

--- Quote --- error #3114: [asm] Invalid combination of opcode and operands.

--- End quote ---


What is that kind of error in a C compiler?

frankie:
Is an internal compiler error.
Means that the code generation algorithm is a little bit lazy, generating inconsistent instructions. In this specific case an operation that try to use registers that are not allowed with the opcode.
Or a bug in the assembler that doesn't recognize a legal opcode.

Jokaste:
I have to find fcml binaries...
Thanks for the answer.
Will this bug be corrected one day?

frankie:
Try to break the line:

--- Code: ---length.value += instruction_part++->code_length;

--- End code ---
to

--- Code: ---length.value += instruction_part->code_length;
instruction_part++;

--- End code ---
It should remove the error.

Navigation

[0] Message Index

Go to full version