[Top][All Lists]

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

Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc pat

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Re: [avr-libc-dev] Please have a look at avr-libc patch #3750
Date: Mon, 5 Sep 2005 21:13:22 +0200
User-agent: Mutt/

As Bernard Fouché wrote:

> My opinion is that if we could reach the
> final memory state that we want by using macros instead of compiled
> code, we may have something that is easy to configure and has no side
> effect with malloc/free and that will not use unneeded code bytes:
> __do_copy_data() will do the job for us.
> So if we can have something like (using the current l__file):
> ->in stdio.h:
> #define STDIO_SETUP(stream,buf,put,get,flags) FILE stream={buf,\
>                    0,\
>                    flags,\
>                    sizeof(buf),\
>                    0,\
>                    put,\
>                    get}

That might basically work, yes.  Seems like a good idea to me.  You
forgot the buffer for the FP stuff, but that's easy to add the same

Other opinions?

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]