Messages in this thread | | | From | "Rustad, Mark D" <> | Subject | Re: [GIT] Networking | Date | Tue, 8 Sep 2015 16:51:01 +0000 |
| |
> On Sep 7, 2015, at 4:02 AM, David Laight <David.Laight@ACULAB.COM> wrote: > > Feed: > int bar(int (*f)[10]) { return sizeof *f; } > into cc -O2 -S and look at the generated code - returns 40 not 4.
Yes, indeed it does. And with clang too. I guess I was too easily discouraged when looking for a workable syntax some years ago. At the time I stopped when the typedef worked, which really just encapsulates this. I should have recognized that then. Thanks for making it all so clear.
-- Mark Rustad, Networking Division, Intel Corporation
[unhandled content-type:application/pgp-signature] | |