From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12246 invoked by alias); 26 Mar 2008 19:23:15 -0000 Received: (qmail 12238 invoked by uid 22791); 26 Mar 2008 19:23:14 -0000 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.157) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Mar 2008 19:22:57 +0000 Received: by fg-out-1718.google.com with SMTP id e12so3197536fga.0 for ; Wed, 26 Mar 2008 12:22:54 -0700 (PDT) Received: by 10.86.26.11 with SMTP id 11mr191434fgz.17.1206559374892; Wed, 26 Mar 2008 12:22:54 -0700 (PDT) Received: by 10.86.76.15 with HTTP; Wed, 26 Mar 2008 12:22:54 -0700 (PDT) Message-ID: <69dd805e0803261222t77767a69sbed4536df4641929@mail.gmail.com> Date: Wed, 26 Mar 2008 20:47:00 -0000 From: "Fabian Scheler" To: "Chris Zimman" , ecos-discuss@sourceware.org In-Reply-To: <20080326183202.GC5705@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080326180616.GA5705@lunn.ch> <20080326181817.GB5705@lunn.ch> <20080326183202.GC5705@lunn.ch> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] ARM EABI port / static constructor priority removal X-SW-Source: 2008-03/txt/msg00164.txt.bz2 > So back to my original question, what is your concept for replacing > them with something else. How are you going to ensure things happen in > the right order. just my two cents about that topic - the global objects we are talking about are singletons, right? So what about something like that Cyg_Scheduler* theScheduler() { static Cyg_Scheduler theScheduler; return &theScheduler; } Ciao, Fabian btw - I have no problem with the init-priority attribute. I believe that avoiding compiler dependencies is nearly as hard as to be processor independent. So, for the most OSes provided as source code the user is supposed to use a specific compiler and with eCos one is supposed to use gcc. It is also not possible to compile the linux kernel using the Microsoft Compiler, is it? -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss