[lkml]   [2014]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 16/28] ktap: add runtime/amalg.c

On Sat, Mar 29, 2014 at 2:52 AM, Andi Kleen <> wrote:
> Jovi Zhangwei <> writes:
>> Use amalgamation build make ktapvm.ko much smaller.
>> No amalgamation build in x86_64:
>> ktapvm.ko: 2.4M
>> amalgamation build in x86_64:
>> ktapvm.ko: 1.1M
>> User can set use amalgamation build or not in Makefile.
> This seems dubious. Is that due to debug information?
> [if yes new enough toolchain can fix that]
> If it's due to code something is seriously wrong,
> perhaps in your inlines.

Change: The kernel module size without amalgamation build is: 3.1M

I guess it's not because of debug info.

Amalgamation build is a kind of simple 'LTO', it compiles the ktapvm as
one huge C file and allows GCC to generate faster and shorter code.

But I also surprised by the size gap, will spend some time to investigate it.



 \ /
  Last update: 2014-03-29 09:01    [W:0.082 / U:11.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site