public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Chris Zimman" <czimman@bloomberg.com>
To: "Fabian Scheler" <fabian.scheler@gmail.com>,
	<ecos-discuss@sourceware.org>
Subject: RE: [ECOS] ARM EABI port / static constructor priority removal
Date: Thu, 27 Mar 2008 01:53:00 -0000	[thread overview]
Message-ID: <F31C1582037F5041B0CD525FD870AE6A774249@ny2545.corp.bloomberg.com> (raw)
In-Reply-To: <69dd805e0803261222t77767a69sbed4536df4641929@mail.gmail.com>

> 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;
> }

That seems like a viable option.

> 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

eCos is by and large CPU independent.  Only a small part of it is processor
specific.  If you *have* to be compiler specific for some reason, fine.  But
I can't see a good reason to be just for the sake of it or because of design
choices that are fixable.

Prior to the ARM EABI work I am doing, you couldn't build CodeSourcery tool
chain either, so if you wanted a supported version of GCC w/ eCos you were
out of luck.  To me, that's a serious drawback for using eCos.  We ran into
internal compiler errors with GCC 3.4.4 and bad behavior in our application
when building with -O2 in some cases.

> It is also not possible to compile the linux kernel using the Microsoft
Compiler, is it?

One thing at a time ;)
 
--Chris

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

      reply	other threads:[~2008-03-26 20:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 18:06 Chris Zimman
2008-03-26 18:09 ` Andrew Lunn
2008-03-26 18:18   ` Chris Zimman
2008-03-26 18:25     ` Andrew Lunn
2008-03-26 18:32       ` Chris Zimman
2008-03-26 18:38         ` Andrew Lunn
2008-03-26 18:42           ` Chris Zimman
2008-03-26 18:56             ` Andrew Lunn
2008-03-26 19:10               ` Chris Zimman
2008-04-02 14:20                 ` Jonathan Larmour
2008-04-02 14:52                   ` Chris Zimman
2008-03-26 20:47           ` Fabian Scheler
2008-03-27  1:53             ` Chris Zimman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F31C1582037F5041B0CD525FD870AE6A774249@ny2545.corp.bloomberg.com \
    --to=czimman@bloomberg.com \
    --cc=ecos-discuss@sourceware.org \
    --cc=fabian.scheler@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).