[Top][All Lists]

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

[avr-libc-dev] RE: [avr-gcc-list] gcc 4.0.x on Linux

From: Ron
Subject: [avr-libc-dev] RE: [avr-gcc-list] gcc 4.0.x on Linux
Date: Sat, 26 Nov 2005 17:25:20 +1100

The new and delete (at least a pre ANSI/ISO version, ie no exceptions)
can be hacked with:

inline void* operator new(unsigned int size) {return new(size);}
inline void* operator new[](unsigned int size) {return new(size);}
inline void operator delete(void* p) {free(p);}
inline void operator delete[](void* p) {free(p);}

However, as Joerg has said a number of times, the problem is no
libsupc++. Is anyone working on this? I built gcc for the MC68832 a some
years ago but that's it for gcc experience. I downloaded 3.4.3 libstdc++
the other day to have a look. I'd be willing to have a go at this if I
can get a little help. For example can it be done under Cygwin? Can
libsupc stand alone without libstdc? 


> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden 
> On Behalf Of Joerg Wunsch
> Sent: Saturday, 26 November 2005 8:13 AM
> To: address@hidden
> Subject: Re: [avr-gcc-list] gcc 4.0.x on Linux
> Przemek Urbanski <address@hidden> wrote:
> > I am using avr-gcc (GCC) 3.4.4 on linux. As far as I 
> remember at that 
> > time it did not support c++ for avr.
> You rememember wrong.  AVR-GCC basically supports C++, but it 
> has a number of restrictions:

There is no difference in that respect between GCC 3.x and 4.x, as the
restrictions are not in the compiler itself.

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

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

AVR-GCC-list mailing list

reply via email to

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