This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc3




I have been using 2.95.3 for a while, but I was hoping to take advantage of
better C++ optimizations in 3.x.

I was able to get everything to compile and link by fixing some minor syntax
issues and supplying a few routines:

void * operator new(size_t size)
{
    if (size == 0)
    {
        size = 1;
    }
    return (void*)malloc(size);
}

void * operator new[](size_t size)
{
    return operator new(size);
}

externC void __cxa_pure_virtual(void)
{
}

Apparently these routines are not included in libgcc anymore.

However, I soon discovered some gcc-related code generation problems.  I guess
gcc3 is not ready for this yet. :)

Thanks!
Wade





Jonathan Larmour <jlarmour@redhat.com> on 10/11/2001 09:50:30 PM

To:   Fabrice Gautier <Fabrice_Gautier@sdesigns.com>
cc:   Wade Jensen/Chandler/Inter-Tel@Inter-Tel, ecos-discuss@sources.redhat.com

Subject:  Re: [ECOS] gcc3



Fabrice Gautier wrote:
>
> > -----Original Message-----
> > From: Jonathan Larmour [mailto:jlarmour@redhat.com]
> > Subject: Re: [ECOS] gcc3
> >
> > Depends which target. Although I could ask: why do you want
> > to avoid 2.95?
>
> 'cause gcc 3 has a new ARM backend ? (supposedly better...)
>
> 'cause gcc 3.x will very soon generate Dwarf2 frame info (which mean you
> will be abble to debug optimized code which don't have frame pointer ... as
> soon as gdb support it - works in progress also)
>
> 'cause i'm sure there is a lot of other things done better in 3

I'm just trying to deter people from using it if all they want is _any_
compiler. If they think it's worth going through a few extra hoops, then
that's okay :).

> 'cause we want to break eCos anyway :-)

Nah, eCos is *designed* to be breakable :-). [1]

Jifl

[1] Think "for (i=0;;i+=4) *i=1;"
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine




Inter-Tel -- Your Connection to the Future
http://www.inter-tel.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]