From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Hovang To: Jonathan Larmour Cc: brendan@dgs.monash.edu.au, ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] ECOS: compiler builds. Date: Wed, 18 Aug 1999 07:59:00 -0000 Message-id: <37BAC9E3.64FBD498@ctech.ideon.se> References: <199908181438.PAA12218@peshwari.cygnus.co.uk> X-SW-Source: 1999-08/msg00022.html Jonathan Larmour wrote: > > In article < 37B9FAFC.2AE6765@dgs.monash.edu.au > you write: > > > >I was reading the document and it says to download the ecos software > >tools and to compile them. I already have built an egcs-1.1.2 > >cross-compiler that targets powerpc-eabi. Can I use this. I don't > > see any reasons why not. > > I'm 99% certain egcs-1.1.2 does not support constructor priority > ordering for powerpc-eabi. But you should be able to use either > gcc-2.95 or the eCos software tools we provide. You could also modify the startupcode to call the contructors in the right order. Check the cyg_hal_invoke_constructors function in hal/mips/arch/v1_1/src/hal_misc.c in eCos 1.1. I did like that to make eCos 1.1 compile with some old gcc-arm-coff targeting StrongARM. However, IMO, that was is not a very neat solution. -- Dan Hovang (dh@ctech.ideon.se) CTechnologies, Ideon Research Park Scheelev 15, 223 70 Lund, Sweden