avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Program Space String & optimization


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Program Space String & optimization
Date: Wed, 14 Dec 2005 15:57:02 +0100 (MET)

"bolet (sent by Nabble.com)" <address@hidden> wrote:

>  The 'end of string' is checked in 'main' (just for test purposes).

A very strange way, indeed...

> volatile PGM_P txt= P_Txt;

Your volatile qualifier is at the wrong place.  You're marking the
object "txt" points to as volatile, not the pointer itself.  Change
that into

PGM_P volatile txt = P_Txt;

and it will work.

Btw., to make other people's job (who are willing to help you) easier,
please supply compilable examples (all required #includes present,
things like "Init code here" in /* */ comment delimiters).  Thank you.

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]