Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1220996

Re: [GIT] Networking

From "Rustad, Mark D" <mark.d.rustad@intel.com>
Newsgroups linux.kernel
Subject Re: [GIT] Networking
Date 2015-09-08 19:00 +0200
Message-ID <q6upt-1Fu-23@gated-at.bofh.it> (permalink)
References (4 earlier) <q4HAu-3ib-27@gated-at.bofh.it> <q4JVE-6Lq-3@gated-at.bofh.it> <q4Vaq-60u-21@gated-at.bofh.it> <q537Z-rj-25@gated-at.bofh.it> <q62tc-3L3-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

> 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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

RE: [GIT] Networking David Laight <David.Laight@ACULAB.COM> - 2015-09-07 13:10 +0200
  Re: [GIT] Networking "Rustad, Mark D" <mark.d.rustad@intel.com> - 2015-09-08 19:00 +0200

csiph-web