ca1 wrote:
i wonder how much it might be.
my guess is 4 for average short function about 20 lines x 80
characters.
i know it is very difficult to come up with some "average c code" and
"average asm code" .... nevertheless someone might have some
experience.
- thanks
The answer would be different for different pieces of code and for CISC
vs. RISC architectures. Generally the assembler equivalent of a segment
of C code tends to be several times as long in terms of lines. Some
assembler dialects can have multiple instruction mnemonics in a single
line and of course C code can be written in wide ranging manner with
regard to vertical space. Compiler optimisation can dramatically affect
this ratio to IME.