I have some time to continue porting SDCC to ST7 (and possibly STM8) architecture. Several months ago I started to rewrite HC08 port.
Now I can compile some code, but only when I have everything in main() function. If I add another function into main.c, the compiler crashes.
D:\V\projekty\ST72F264\_SDCC>sdcc -mst7 --fverbose-asm main.c
ERROR: regWithIdx = 6
main.c:59: error 9: FATAL Compiler Internal Error in file 'ralloc.c' line number '122' : regWithIdx not found
No ASM file is generated. I am sure that I have regIDX 6 defined for stack pointer. Is anybody aware how to debug this problem ? How to trace, what is required for code generator ?
Thank you in advance,