Re: link time analysis for the kernel.

2018-10-11 Thread valdis . kletnieks
On Thu, 11 Oct 2018 21:45:16 +0800, Carter Cheng said: > There are some detaills about the current procedures for linking the kernel > that I am unfamiliar with. My understanding is that GCC and Clang both have > the ability to do link time analysis and transforms on code but is it > possible to

Re: Learning Linux Kernel Development

2018-10-11 Thread valdis . kletnieks
On Thu, 11 Oct 2018 14:42:56 +0400, o...@goosey.org said: > 10.10.2018, 19:36, "Carter Cheng" : > >2. Is there some good way to figure out how to update knowledge gained > > from > >this book to what is in the 4.x series of kernels? > I think all C code-based drivers will work on all

Re: link time analysis for the kernel.

2018-10-11 Thread Carter Cheng
sorry not a kernel loader but an ELF loader. On Fri, Oct 12, 2018 at 2:55 AM Carter Cheng wrote: > Actually I have compiled and installed kernels before. I am wondering > however if LTO still works for compiling kernel images on clang or gcc > since my understanding is the kernel code includes

Re: link time analysis for the kernel.

2018-10-11 Thread Ozgur
  11.10.2018, 22:55, "Carter Cheng" :Actually I have compiled and installed kernels before. I am wondering however if LTO still works for compiling kernel images on clang or gcc since my understanding is the kernel code includes a kernel loader which loads the ELF format but the image of an OS

Re: link time analysis for the kernel.

2018-10-11 Thread o
  11.10.2018, 17:48, "Carter Cheng" :Hi,  Hello, I want to ask pardon me and have you ever compiled a linux kernel?In my opinion you should first examine gcc ld and make process :) The elf format executable format and  the process after compiling the c code.Please read: 

link time analysis for the kernel.

2018-10-11 Thread Carter Cheng
Hi, There are some detaills about the current procedures for linking the kernel that I am unfamiliar with. My understanding is that GCC and Clang both have the ability to do link time analysis and transforms on code but is it possible to write link time passes that will run on the kernel since

Re: Learning Linux Kernel Development

2018-10-11 Thread Carter Cheng
Thanks a lot. On Thu, Oct 11, 2018 at 6:42 PM wrote: > > > 10.10.2018, 19:36, "Carter Cheng" : > > > -- Forwarded message - > From: *Carter Cheng* > Date: Wed, Oct 10, 2018 at 10:52 PM > Subject: Learning Linux Kernel Development > To: > > Hello, > > > > Hello, > > > > I am