public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mingodad at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51364] C++ interoperability with ISO-C extension DFP types requires explicit typedefs.
Date: Mon, 19 Dec 2011 00:10:00 -0000 [thread overview]
Message-ID: <bug-51364-4-ZcmeUqSovd@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51364-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51364
--- Comment #8 from Domingo Alvarez <mingodad at gmail dot com> 2011-12-18 23:30:43 UTC ---
(In reply to comment #7)
> An executable with decimal float support is very big because the runtime
> support is in static libraries, not in shared libraries (DLLs). That will
> probably change if it ever gets widespread use.
Thanks for the answer but there is something strange because the jump from a
small executable to a big one +2.5MB is a bit strange, in one test program
consisting of compiling the printf.c of sqlite3 after some defines to allow it
compile outside sqlite3 source tree, the executable using _Decimal64 and
_Decimal128 is 2.49MB and if I remove a call to "isnan" the size go down to
480KB and if I use _Decimal64 in place of _Decimal128 it goes down to 228KB.
With other program that only do some calculations with _Decimal64 and one use
of _Decimal128 result in an executable of 135KB if I add a call to "isnan"
there is no change at all on executable size.
So I got lost on understando the logic that makes gcc add 2MB of static code.
By the results of the second program it seems that it's possible to use
_Decimal64 _Decimal128 and have a reasonable executable size, but suddenly it
jumps to 2.5MB.
I tested lua 5.1.4 as well and it goes from using double from 150KB to using
_Decimal64 to 2.48MB and I tried to cut code where _Math is done on numbers but
without get any executable reduction.
So resuming I think there is possibility to use _Decimal64 without load 2.5MB
it only needs some adjusts to the way gcc is generating code.
next prev parent reply other threads:[~2011-12-18 23:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 18:58 [Bug c++/51364] New: " rsa at us dot ibm.com
2011-11-30 19:09 ` [Bug c++/51364] " redi at gcc dot gnu.org
2011-11-30 21:46 ` rsa at us dot ibm.com
2011-11-30 21:46 ` janis at gcc dot gnu.org
2011-11-30 21:59 ` janis at gcc dot gnu.org
2011-12-09 16:06 ` rsa at us dot ibm.com
2011-12-17 21:14 ` mingodad at gmail dot com
2011-12-18 6:28 ` janis at gcc dot gnu.org
2011-12-19 0:10 ` mingodad at gmail dot com [this message]
2011-12-19 0:27 ` redi at gcc dot gnu.org
2011-12-19 3:33 ` mingodad at gmail dot com
2011-12-19 20:45 ` janis at gcc dot gnu.org
2012-01-18 20:21 ` rsa at us dot ibm.com
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=bug-51364-4-ZcmeUqSovd@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.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).