Re: [GIT] Networking

Rustad, Mark D
2015-09-08T16:51:08Z

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

> 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

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 841 bytes --]