Average instruction length in x86-built kernel?
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line · Karim Yaghmour
Here's a script that does what I was looking for:
<snip>
#!/bin/bash
for a in "$@"
do
objdump -d "$a" -j .text
done | perl -ne'
BEGIN{%h=();$b=0};
END{if($b){$h{$b}++};print map("$_: $h{$_}\n", sort(keys(%h)))};
if(/\tnop $/){$h{nop}++}elsif(/^[\s0-9a-f]{8}:\t([^\t]+) (\t?)/){
$b+=split(" ",$1);if($2){$h{$b}++;$b=0}}'
Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren.
Quoted 3 lines
Quoted 2 lines
Here's a script that does what I was looking for:
<snip>
Mmmmh, perlgolf?
Quoted 10 lines
#!/bin/bash
for a in "$@"
do
objdump -d "$a" -j .text
done | perl -ne'
BEGIN{%h=();$b=0};
END{if($b){$h{$b}++};printmap("$_: $h{$_}\n", sort(keys(%h)))};
if(/\tnop $/){$h{nop}++}elsif(/^[\s0-9a-f]{8}:\t([^\t]+) (\t?)/){
$b+=split(" ",$1);if($2){$h{$b}++;$b=0}}'
objdump -j .text -d "$@" | perl -ne ' END{$h{$b}++if$b;print map"$_: $h{$_}\n",sort keys%h}; if(/\tnop\s*$/){$h{nop}++} elsif(/^.*?:\t([^\t]+) (\t?)/){
$b+=split/ /,$1;if($2){$h{$b}++;$b=0}}'
Jan Engelhardt
Signature · 1 line
| Alphagate Systems, http://alphagate.hopto.org/