Re: Average number of instructions per line of kernel code
flat view
From: Jesper Juhl <hidden>
Date: 2007-08-30 13:55:22
Also in:
lkml
On 30/08/2007, Mohamed Bamakhrama [off-list ref] wrote:
On 8/30/07, Jesper Juhl [off-list ref] wrote:quoted
On 30/08/2007, Mohamed Bamakhrama [off-list ref] wrote:quoted
Hi all, I have a question regarding the average number of assembly instructions per line of kernel code. I know that this is a difficult question since it depends on many factors such as the instruction set architecture, compiler used, optimizations used, type of code, coding style, etc... I would like to know a rough estimate for such a quantity for the kernel 2.4/2.6 code running on MIPS32 architecture. My estimate is between 5-10 instructions. I googled for such a thing but couldn't find any useful papers/resources.Why don't you simply count the number of non-blank non-comment lines in the source files that you are building, build the kernel and then count the number of instructions in the resulting binary ?Hi, I agree with you but is there any way to include ALL the drivers in the kernel tree in building the image? Otherwise, I will be counting un-used lines.
make allyesconfig make -- Jesper Juhl [off-list ref] Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html