public inbox for ecos-maintainers@sourceware.org
 help / color / mirror / Atom feed
From: John Dallaway <john@dallaway.org.uk>
To: Bart Veer <bartv@ecoscentric.com>
Cc: ecos-maintainers@ecos.sourceware.org
Subject: Re: Building RedBoot for SH3 targets with new toolchain
Date: Thu, 22 Jan 2009 16:59:00 -0000	[thread overview]
Message-ID: <4978A5B2.1050901@dallaway.org.uk> (raw)
In-Reply-To: <pn3afbz9ne.fsf@delenn.bartv.net>

Hi Bart

Bart Veer wrote:

>>>>>> "John" == John Dallaway <john@dallaway.org.uk> writes:
> 
>     John> Hi Andrew
>     John> Andrew Lunn wrote:
> 
>     >>> Taking all these things into account, plus the desire to avoid
>     >>> further delays to the eCos 3.0 release, I think it preferable
>     >>> to stick with the stock mpfr and gmp DLLs for the
>     >>> Cygwin-hosted toolchains. We must document the need to install
>     >>> the relevant Cygwin packages though, and add an entry to the
>     >>> FAQ.
>     >> 
>     >> Would it be possible to detect at build time if these DLLs are
>     >> installed? But a custom build rule with the highest priority in
>     >> infra, or HAL which will test if this files exist and stop and
>     >> print an useful error message if they are not installed?
>     >> 
>     >> The way cygwin is silently failing is not nice...
> 
>     John> The failure mode is certainly not nice. I expect that the
>     John> mpfr and gmp DLLs are loaded explicitly by the compiler
>     John> using LoadLibrary() and failure is not being reported at the
>     John> application level.
> 
>     John> We could emit a _warning_ message using a custom rule. An
>     John> _error_ message would be too strong since older toolchains
>     John> do not use mpfr and gmp. However, it seems cleaner to keep
>     John> such testing out of the build process and perform the tests
>     John> in the eCos install script instead when the relevant
>     John> toolchains are being installed. Having said that, I
>     John> appreciate that experienced eCos developers may not use the
>     John> install script.
> 
> Just how much does it save to link mpfr and gmp dynamically instead of
> statically? Ditto for intl and iconv?

I cannot quantify the size and performance savings without
experimentation, but I do know that using the DLLs is the right approach
for Windows hosts. If GCC is using LoadLibrary() for the mpfr and gmp
DLLs then the correct fix would be to patch GCC to report the failure.
However, tying such a fix (and the preceding investigation) to the
forthcoming release would not be appropriate at this stage in the
release cycle. Lets keep focussed on the remaining critical issues for
eCos 3.0.

John Dallaway

      reply	other threads:[~2009-01-22 16:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21 19:48 John Dallaway
2009-01-21 20:30 ` Jonathan Larmour
2009-01-21 22:08   ` John Dallaway
2009-01-21 22:33     ` Jonathan Larmour
2009-01-21 23:34       ` John Dallaway
2009-01-22  0:29         ` Jonathan Larmour
2009-01-22 10:15           ` John Dallaway
2009-01-22 10:31             ` Andrew Lunn
2009-01-22 12:30               ` John Dallaway
2009-01-22 14:40                 ` Bart Veer
2009-01-22 16:59                   ` John Dallaway [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=4978A5B2.1050901@dallaway.org.uk \
    --to=john@dallaway.org.uk \
    --cc=bartv@ecoscentric.com \
    --cc=ecos-maintainers@ecos.sourceware.org \
    /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).