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

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

Re: [avr-gcc-list] C++ on AVR 90S8515


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] C++ on AVR 90S8515
Date: Tue, 25 Jun 2002 15:06:17 +0200
User-agent: Mutt/1.2.5i

As Stumpf Michael wrote:

> I'm not really sure about it (- maybe I check out someday to accomplish my
> knowledge -) but a template generates one function for every variety of args
> : 
> signed/unsigned, const and/or volatile. 

It depends on how you fill in the template.  Of course, you can get
C++ to perform argument conversion just like C (and even more).

> BTW - is C++ allready available or just a plan?

Since the frontends and the backends are fairly independent in GCC,
the C++ functionality has basically been available from day #1 of
AVR-GCC.  However, as i wrote in another message, libstdc++ cannot
be compiled since it would generate too far jumps (but you probably
don't want that huge blurb in a microcontroller anyway ;-), and
Marek implemented the code required to run global constructors/
desctructors only very recently, so in all officially released
versions of AVR-GCC they simply don't work.  (Global constructors
and destructors are a matter of the libc framework, since they
need to be run before and after main().)

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



reply via email to

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