News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Fcml error

Started by Jokaste, October 30, 2017, 06:25:07 PM

Previous topic - Next topic

Jokaste



/* 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;
}

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


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.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Jokaste

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


frankie

Try to break the line:

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

to

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

It should remove the error.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide