[Top][All Lists]

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

Re: [avr-gcc-list] Memory Size Report

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Memory Size Report
Date: Mon, 6 Feb 2006 06:29:11 +0100 (MET)

Peter Harrison <address@hidden> wrote:

> Where I have been in the habit of just writing an explicit string
> constant in a printf or sprintf call, I should declare the string
> separately first with the PROGMEM attribute to ensure it does not
> get copied into RAM at startup...

Shortcut for that:

printf_P(PSTR("This is string # %d\n."), 42);

cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

reply via email to

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