public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: Albert Abramson <abramson.albert@gmail.com>
Cc: GCC Development <gcc@gcc.gnu.org>
Subject: Re: programming language that does not inhibit further optimization by gcc
Date: Tue, 15 Oct 2013 14:45:00 -0000	[thread overview]
Message-ID: <CAKOQZ8wjrML-b97fNXHLbXUd8APrse0CaK4y91enTHL=VVA9Vg@mail.gmail.com> (raw)
In-Reply-To: <CAEvgbXFD9egt-32A00+Unf4Q7j_sa7ucBE7p7ZNFiWVnNOW+4A@mail.gmail.com>

On Mon, Oct 14, 2013 at 5:31 PM, Albert Abramson
<abramson.albert@gmail.com> wrote:
>
> Is there a language out there (similar to Fortran or a dialect of C)
> that doesn't inhibit the compiler from taking advantage of every
> optimization possible?

Sure: Fortran.


> Is there some way to provide a C/C++ compiler
> with extra information about variables and programs so that it can
> maximize performance or minimize size?  For example:
>
> int age = 21;    //[0, 150)  setting maximum limits, compiler could use byte int
> int outsideTemp = 20;    //[-273, 80]
> float ERA = 297;           //[0, 1000, 3]   [min, max, digits of
> accuracy needed]

Hmmm, OK, that kind of thing is available in PL/1 and, I think, in
Ada.  But as far as I know it doesn't help compilers very much in
practice.

Ian

  parent reply	other threads:[~2013-10-15 14:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15  0:31 Albert Abramson
2013-10-15 12:00 ` Rob
2019-03-30  7:14   ` Albert Abramson
2019-03-30 10:42     ` David Brown
2013-10-15 14:45 ` Ian Lance Taylor [this message]
2013-10-15 22:09 ` gwenael chailleu

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='CAKOQZ8wjrML-b97fNXHLbXUd8APrse0CaK4y91enTHL=VVA9Vg@mail.gmail.com' \
    --to=iant@google.com \
    --cc=abramson.albert@gmail.com \
    --cc=gcc@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).