Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#88 limitations ??

closed-works-for-me
Johan Knol
1
2013-05-25
2001-07-11
Anonymous
No

Hi,

i am a new user of 'SDCC'. I tried the following
construction:

void Show(void)
{
MoveXY(1,1);
PrintLCD("HALLO WELT!");
Delay(30000);
Delay(30000);
Delay(30000);
MoveXY(1,2);
PrintLCD("S.T.R.I.N.G.");
Delay(30000);
Delay(30000);
Delay(30000);
/* Delay(30000); */ <- this line
ClearScreen();
}

it is a simple routine to display some text on a LCD-
Display. if i add the line called 'this line', my
program does not work. if i do it without 'this line'
it works perfectly.

is it possible that the length of a function is
limited in 'SDCC' or whats the problem with 'this
line' ???

regards
Klaus P.
-testa inc.-

Discussion

  • Johan Knol
    Johan Knol
    2001-07-14

    Logged In: YES
    user_id=63512

    Functions can be as long as code space permits. There is
    nothing wrong with "this line". Perhaps an exhausted
    watchdog? Some interrupt conflict?

    Johan

     
  • Johan Knol
    Johan Knol
    2001-07-14

    • milestone: --> unreproducable
    • priority: 5 --> 1
    • assigned_to: nobody --> johanknol
    • status: open --> open-works-for-me
     
  • Johan Knol
    Johan Knol
    2001-07-14

    Logged In: YES
    user_id=63512

    This can't be reproduced in 2.2.2beta. Can you confirm it still
    exists?

     
  • Johan Knol
    Johan Knol
    2001-07-20

    • status: open-works-for-me --> closed-works-for-me
     
  • Logged In: NO

    Sorry, this was my failure. I have only an eepromer for
    eeproms (2864) built by
    myself and my own software. In this software i limited the
    size to 1k. And my
    LCD-Program has more than 1k (!). The startup-code of a
    compiled program is at
    the end of it. And so it crashed, because there was no real
    code in the eeprom.
    I found it out yesterday and changed the size of my eeprom
    to 2k. Now it works
    perfectly.

    Regards,
    Klaus P.
    -testa inc.-