This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] For clang use Blocks instead of nested functions.


I tried to send out my previous attached patch last Friday, but it did not
work.

So, now I have sent out three patches in other emails:
  [PATCH] Replace src inline nested functions with macros.
  [PATCH] Replace libelf nested functions with macros.
  [PATCH] Replace libdw nested functions with macros, part 1
More will come for other files.

We can discuss case by case. Some nested function could be converted to
simple macros,
some might be moved to file scope, and some you might find more similar to
closures.


On Mon, Sep 14, 2015 at 10:13 AM, Roland McGrath <roland@hack.frob.com>
wrote:

> If they get inlined by the compiler, then there is no performance
> difference.
>
I tried to send out my previous attached patch last Friday, but it did not work.

So, now I have sent out three patches in other emails:
  [PATCH] Replace src inline nested functions with macros.
  [PATCH] Replace libelf nested functions with macros.
  [PATCH] Replace libdw nested functions with macros, part 1
More will come for other files.

We can discuss case by case. Some nested function could be converted to simple macros,
some might be moved to file scope, and some you might find more similar to closures.


On Mon, Sep 14, 2015 at 10:13 AM, Roland McGrath <roland@hack.frob.com> wrote:
If they get inlined by the compiler, then there is no performance difference.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]