From owner-freebsd-hackers Mon Apr 27 05:01:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA24413 for freebsd-hackers-outgoing; Mon, 27 Apr 1998 05:01:26 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA24400 for ; Mon, 27 Apr 1998 05:01:18 -0700 (PDT) (envelope-from hans@news.IAEhv.nl) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 4054 on Mon, 27 Apr 1998 12:01:08 GMT; id MAA04054 efrom: hans; eto: UNKNOWN Received: by truk.brandinnovators.com (8.8.7/BI96070101) for id NAA03971; Mon, 27 Apr 1998 13:55:43 +0200 (CEST) Message-Id: <199804271155.NAA03971@truk.brandinnovators.com> From: hans@brandinnovators.com (Hans Zuidam) Subject: Re: how to get number of instructions in a prg In-Reply-To: <199804270906.LAA08665@kk662.kk.etx.ericsson.se> from ETX-B-SL Martti Kuparinen at "Apr 27, 98 11:06:58 am" To: erakupa@kk.etx.ericsson.se (ETX-B-SL Martti Kuparinen) Date: Mon, 27 Apr 1998 13:55:43 +0200 (CEST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > ETX-B-SL Martti Kuparinen wrote: > What is the easiest way to count the number of assembler instructions > in a program? Hmmmm... what about: objdump --disassemble file | wc -l minus 4 header lines. (objdump is in the GNU binutils toolset, sadly not in ports...) Hope this helps, Hans -- H. Zuidam E-Mail: hans@brandinnovators.com Brand Innovators B.V. P-Mail: P.O. Box 1377 de Pinckart 54 5602 BJ Eindhoven, The Netherlands 5674 CC Nuenen Tel. +31 40 2631134, Fax. +31 40 2831138 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message