Searching \ for 'C- programing problem' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=programing+problem
Search entire site for: 'C- programing problem'.

Truncated match.
PICList Thread
'C- programing problem'
1997\05\29@111818 by Wynand Lochner

flavicon
face
Hi
I am trying to define a static string in C using Mplabc for the
16c84.The command : static char newstr[ ] = {a,b,c};
causes the characters to be placed in the ram registers and not in
the code as required.

Any idears
W Lochner

1997\05\29@125044 by Andrew Warren

face
flavicon
face
Wynand Lochner <spam_OUTPICLISTTakeThisOuTspamMITVMA.MIT.EDU> wrote:

> I am trying to define a static string in C using Mplabc for the
> 16c84.The command : static char newstr[ ] = {a,b,c}; causes the
> characters to be placed in the ram registers and not in the code as
> required.
>
> Any idears

   Wynand:

   Try "const" instead of "static".

   -Andy

=== Andrew Warren - .....fastfwdKILLspamspam@spam@ix.netcom.com
=== Fast Forward Engineering, Vista, California
=== http://www.geocities.com/SiliconValley/2499

1997\05\30@055742 by Scott Walsh

flavicon
face
    Wynand,

    what you really want is to make it a

    const static <type> <variable>

    MPLABC is not ANSI so the const keyword may not be implemented! Just try
    it. Hope this helps.

    regards,
    ScotT.


______________________________ Reply Separator _________________________________
Subject: C- programing problem
Author:  pic microcontroller discussion list <PICLISTspamKILLspamMITVMA.MIT.EDU> at
INTERNET
Date:    29/05/97 17:05


Hi
I am trying to define a static string in C using Mplabc for the
16c84.The command : static char newstr[ ] = {a,b,c};
causes the characters to be placed in the ram registers and not in
the code as required.

Any idears
W Lochner

More... (looser matching)
- Last day of these posts
- In 1997 , 1998 only
- Today
- New search...