Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Script to test instruction set.
Date: Tue, 12 Aug 2003 18:23:47
Message-Id: 20030812182343.GA8128%chutz@gg3.net
In Reply to: [gentoo-dev] Script to test instruction set. by Tavis Ormandy
1 The shell script runs a little too slow, so I took the liberty of converting it
2 to perl. Here is why:
3
4 chutz@lion tmp $ time ./analyse-x86.sh /bin/ls
5 Checking vendor_id string...AuthenticAMD
6 Disassembling /bin/ls, please wait...
7 i486: 0 i586: 0 mmx: 0 sse: 0 3dnow: 0 ext3dnow: 21
8 /bin/ls will run on AMD Athlon (athlon) or higher processor.
9
10 real 1m1.848s
11 user 1m0.310s
12 sys 0m0.210s
13
14 chutz@lion tmp $ time ./analyse-x86.pl /bin/ls
15 Checking vendor_id string...AuthenticAMD
16 Disassembling /bin/ls, please wait...
17 i486: 0 i586: 0 mmx: 0 sse: 0 3dnow: 0 ext3dnow: 21
18 /bin/ls will run on AMD Athlon (athlon) or higher processor.
19
20 real 0m3.733s
21 user 0m3.610s
22 sys 0m0.000s
23
24 --
25 \ Georgi Georgiev \ Beauty seldom recommends one woman to \
26 / chutz@×××.net / another. /
27 \ +81(90)6266-1163 \ \

Attachments

File name MIME type
analyse-x86.pl application/x-perl

Replies

Subject Author
Re: [gentoo-dev] Script to test instruction set. Joerg Plate <plate@××××××××××××××××.de>