Sorry guys, consider this as the non working code (when writing that
e-mail, I typed wrongly commas instead of semi colons)...

// write string to LCD
void lcd_puts(char *str) {
        char *p;

        for(p=str;*p;p++)  // loop str while *p!=0;
                lcd_write(T_DATA,*p);// output char to lcd
}


-----Original Message-----
From: Costa, Mauricio 
Sent: quarta-feira, 20 de agosto de 2008 13:56
To: sdcc-user@lists.sourceforge.net
Subject: RE: [Sdcc-user] pic14 16f628a sdcc 2.8.0 never ending loop
-mis-compilation?

I have issue similar (maybe it would be in a separated thread) but the
bottom line is SDCC might have issues to process loops (AFAIK for PIC14
architecture). Let's embody this e-mail...

I have in my personal lib a function as shown:

...
// write string to LCD
void lcd_puts(char *str) {
        char *p;

        for(p=str;*p;p++)  // loop str while *p!=0;
                lcd_write(T_DATA,*p);// output char to lcd
}
...
When I call passing a string to it, it only outputs the 1st char... I'm
using PIC16F876A and same behavior for my PIC16F628 and 16F88.

This same code works fine (as is) when ported to MikroC.

Regards,
Mauricio

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arkadi
Shishlov
Sent: quarta-feira, 20 de agosto de 2008 13:08
To: sdcc-user@lists.sourceforge.net
Subject: Re: [Sdcc-user] pic14 16f628a sdcc 2.8.0 never ending loop
-mis-compilation?

Raphael Neider wrote:
> Hi Arkadi,
>> I'm having troubles with a custom delay functions that never returns.
Same code 
>> compiled with PICC Lite compiler perform as expected.
> 
> Could you try to update to a recent SDCC version (snapshot) and
compile 
> your source file with --nooverlay (newly supported option for the
pic14 
> port, since svn r5209, committed on 2008-08-10)? This should both blow

> up data memory usage and solve your problem. Then please report
whether 
> the problem is solved or not.

The code works correctly with SDCC version 2.8.3 #5216 and --nooverlay
option.
Does not work without --nooverlay.

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to