[Top] [All Lists]

Re: Average number of instructions per line of kernel code

To: "Jesper Juhl" <>
Subject: Re: Average number of instructions per line of kernel code
From: "Mohamed Bamakhrama" <>
Date: Thu, 30 Aug 2007 15:48:35 +0200
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DV87nQhNGoAfamAHCeiqQmtsgwKewKd4FmBCUHVRTkQjJmVPBmqxCqG88/JOBkXFpNN3flFu9YaZVuWJD7MLZYUZO/TonLQ5kyuJvHVrdqKHFinnyjo7cFpndYjc6IWjRHnSJEvX3/3T0kFbHK2h3Hdj6IqElngKLMkhVvuvMp4=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cyUdk3x819m5NTw88WR1j3Ox6g7bNSXwjt66rsu4IM2wj62XEsaZ5GNrJyxXTBIh/cyTXy6KpinwnZd5LYf5uWeiR0uCv5u315pj39iW7PqnUWCYXjtsHTV7f7L8GU3VfjQnBLxwFBI7rK2aBCRx79Ajp6XSYm8qSVelbQfrrho=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>
On 8/30/07, Jesper Juhl <> wrote:
> On 30/08/2007, Mohamed Bamakhrama <> wrote:
> > 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 ?

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.


<Prev in Thread] Current Thread [Next in Thread>