Menu

#2799 Internal compiler error "Unimplemented __z88dk_callee support on callee side"

closed-rejected
None
Z80
5
2019-04-04
2018-08-21
Jari Komppa
No

Internal compiler error:

app.c:46: error 9: FATAL Compiler Internal Error in file '/home/sdcc-builder/build/sdcc-build/orig/sdcc/src/z80/gen.c' line number '4517' : Unimplemented __z88dk_callee support on callee side
Contact Author with source code

compiling:

void cp(unsigned char *dst, unsigned short len, unsigned char *src)  __z88dk_callee
{
       dst; len; src;
    // de   bc   hl
    __asm
    pop iy
    pop de
    pop bc
    pop hl
    push iy
    ldir
    __endasm;    
}

works with 3.5.0 and 3.6.0, doesn't work with any of the recent versions (tried 3.7.2 which is the oldest snapshot available, as well as the most recent one).

Discussion

  • Philipp Klaus Krause

    • status: open --> closed-rejected
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    IMO, the error message is correct, as SDCC cannot generate code for __z88dk_callee on the callee side.
    If you want to implement it all yourself, like in your example, you should also use __naked and then add the ret in the asm.

    Philipp

     

Log in to post a comment.