This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Average number of instructions per line of kernel code
- From: "Mohamed Bamakhrama" <bamakhrama at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 30 Aug 2007 15:03:37 +0200
- Subject: Average number of instructions per line of kernel code
- Reply-to: bamakhrama at gmail dot com
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 compiled using GCC.
My estimate is between 5-10 instructions. I googled for such a thing
but couldn't find any useful papers/resources.
Many thanks in advance.
Best regards
--
Mohamed A. Bamakhrama
Am Schaeferanger 15, room 035
85764 Oberschleissheim, Germany
Email: bamakhra@cs.tum.edu
Web: http://home.cs.tum.edu/~bamakhra/
Mobile: +49-160-9349-2711