#1448 xstack usage

closed-fixed
5
2013-05-25
2008-04-09
HarryMc
No

A file compiled (and running) successfully fails to compile when --xstack is used:

sdcc -I. --xstack -c --stack-auto --model-small qepn.c -o qepn.rel

with errors:
probable internal error: unexpected rname @ gen.c:9941
probable internal error: unexpected rname @ gen.c:9941
probable internal error: unexpected rname @ gen.c:9941
probable internal error: unexpected rname @ gen.c:9941
probable internal error: unexpected rname @ gen.c:9941
probable internal error: unexpected rname @ gen.c:9941
probable internal error: unexpected rname @ gen.c:10635
probable internal error: unexpected rname @ gen.c:10635
probable internal error: unexpected rname @ gen.c:9941
probable internal error: unexpected rname @ gen.c:9941
?ASxxxx-Error-<a> in line 875 of qepn.asm
<a> machine specific addressing or addressing mode error
?ASxxxx-Error-<a> in line 877 of qepn.asm
.. etc .. etc ..

sdcc -v is:
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 0.0.0 #5081 (Mar 9 2008) (UNIX)

I was testing for when __data variables were going to make standard stack too small and to see the effect on code size of using xstack. This isn't stopping my present work.

All the best
Harry McNally

Discussion

  • HarryMc

    HarryMc - 2008-04-09

    Tar of all files to compile test code and output files

     
  • Maarten Brock

    Maarten Brock - 2008-06-04
    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed
     
  • Maarten Brock

    Maarten Brock - 2008-06-04

    Logged In: YES
    user_id=888171
    Originator: NO

    Harry,

    I fixed the error in SDCC 2.8.1 #5191. I also think it fixes the underlying problem, but am unsure, because it's not obvious to me what this complicated code should do. I admit I did not even try to understand it. Please reopen the bug if it is not solved.

    I've used your code with slight modifications as regression test bug1938300.c.

    Maarten

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks