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

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

Re: [avr-gcc-list] AVR-GCC question


From: Daniel O'Connor
Subject: Re: [avr-gcc-list] AVR-GCC question
Date: Tue, 24 May 2005 09:40:48 +0930
User-agent: KMail/1.8

On Tue, 24 May 2005 02:27, Joerg Wunsch wrote:
> "E. Weddington" <address@hidden> wrote:
> >>It would be nice if some form of polymorphism happened that allowed
> >>the compiler/linker to automagically pick the right function to
> >>handle a given data type though.
> >
> > Sure, it's called C++. :-)
>
> And not so sure whether you'd really want to pay the penalty for it,
> as it causes code bloat (all routines must be able to handle all
> memory regions, even though some of them perhaps aren't used in all of
> the functions), as well as increased execution time (late binding
> model, aka. virtual method table).

You wouldn't necessarily need late binding - I think most cases would be 
satisifed with compile-time evaluation of the pointer type.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: pgpk1L5EJ5PLL.pgp
Description: PGP signature


reply via email to

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