From: Joern Rennecke <amylaar@cygnus.co.uk>
To: hasdi@umich.edu (Hasdi R Hashim)
Cc: egcs@cygnus.com
Subject: Re: g++/i386: 4-byte inline struct return
Date: Thu, 17 Sep 1998 09:59:00 -0000 [thread overview]
Message-ID: <199809171327.OAA08421@phal.cygnus.co.uk> (raw)
In-Reply-To: <Pine.SOL.3.95.980916231505.12986A-100000@breakout.rs.itd.umich.edu>
> I tried every single trick I could think off to make "foo a = bar(1)" as
> efficient as "long a = 1". I think the problem has to with struct returns
> because when I substitute "struct foo.." with "typedef long foo" I get the
> expected code. Can somebody please work on this? This has enormous
> potential; it would help me and millions other sorry hackers out there.
This problem is ABI related. For instance, you will get better code for
i386-linuxaout that for i386-pc-linux-gnu.
Unless you use -freg-struct-return , but then, you can get problems with
library functions like inet_makeaddr.
next prev parent reply other threads:[~1998-09-17 9:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-16 22:55 Hasdi R Hashim
1998-09-17 9:59 ` Joern Rennecke [this message]
1998-09-17 9:59 ` Hasdi R Hashim
1998-09-17 9:59 ` Joern Rennecke
1998-09-17 9:59 ` Hasdi R Hashim
1998-09-17 18:37 ` Joe Buck
1998-09-18 2:04 ` Martin von Loewis
1998-09-18 6:59 ` Hasdi R Hashim
1998-09-17 22:12 ` Martin von Loewis
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=199809171327.OAA08421@phal.cygnus.co.uk \
--to=amylaar@cygnus.co.uk \
--cc=egcs@cygnus.com \
--cc=hasdi@umich.edu \
/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).