From: Gerd Knorr <kraxel@bytesex.org>
To: Hollis Blanchard <hollisb@us.ibm.com>
Cc: Michael A Fetterman <Michael.Fetterman@cl.cam.ac.uk>,
Mark Williamson <maw48@cl.cam.ac.uk>,
xen-devel@lists.xensource.com
Subject: Re: [patch] pagetable cleanups
Date: Thu, 14 Apr 2005 21:30:59 +0200 [thread overview]
Message-ID: <20050414193059.GA29472@bytesex> (raw)
In-Reply-To: <1113506404.16993.33.camel@localhost.localdomain>
> It is certainly possible that the callee could create a temporary struct
> on its stack and memcpy into the address provided by the ABI. However,
> even at -O0 the address of the struct is popped off the stack and used
> directly when assigning to structure fields. I'm using gcc 3.3.5.
Same here. And with optimization turned on gcc simply inlines the
functions, which makes the whole discussion kida useless ;)
So I think we don't have do worry about gcc doing stupid things and
can simply return structs in the C code.
Gerd
next prev parent reply other threads:[~2005-04-14 19:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-12 18:58 [patch] pagetable cleanups Gerd Knorr
2005-04-14 12:25 ` Michael A Fetterman
2005-04-14 15:01 ` Gerd Knorr
2005-04-14 14:48 ` Mark Williamson
2005-04-14 18:27 ` Hollis Blanchard
2005-04-14 19:07 ` Anthony Liguori
2005-04-14 19:20 ` Hollis Blanchard
2005-04-14 19:30 ` Gerd Knorr [this message]
2005-04-14 16:47 ` Christian Limpach
-- strict thread matches above, loose matches on Subject: below --
2005-04-14 14:14 Ian Pratt
2005-04-14 15:11 Ian Pratt
2005-04-14 15:31 ` Gerd Knorr
2005-04-14 19:33 Ian Pratt
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=20050414193059.GA29472@bytesex \
--to=kraxel@bytesex.org \
--cc=Michael.Fetterman@cl.cam.ac.uk \
--cc=hollisb@us.ibm.com \
--cc=maw48@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.