|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] [patch] pagetable cleanups
> Because you cannot rely on the optimization, structs are not
> typically returned by value. Since this is so rarely done,
> I'd argue it's more readable to pass a struct as an argument
> (the fact that some people don't even realize it's possible
> should support that).
Gcc optimises the case where an 8 byte struct is returned from an inline
function just fine. It's far more likely to generate poor code when you
start passing values by reference. I don't buy your readability
argument: Being able to use the return value in expressions can make
code rather easier to grock.
Ian
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
Previous by Date: |
RE: [Xen-devel] [PATCH] xen, tools/python/xen: pincpu support, vcpus, add vcpu to cpu map, Ian Pratt |
Next by Date: |
Re: [Xen-devel] [PATCH] xen, tools/python/xen: pincpu support, vcpus, add vcpu to cpu map, Andrew Theurer |
Previous by Thread: |
Re: [Xen-devel] [patch] pagetable cleanups, Gerd Knorr |
Next by Thread: |
[Xen-devel] domu_debug support removed on march 25th from traps.c in -unstable, Kip Macy |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|