Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 1998 13:55:43 +0200 (CEST)
From:      hans@brandinnovators.com (Hans Zuidam)
To:        erakupa@kk.etx.ericsson.se (ETX-B-SL Martti Kuparinen)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: how to get number of instructions in a prg
Message-ID:  <199804271155.NAA03971@truk.brandinnovators.com>
In-Reply-To: <199804270906.LAA08665@kk662.kk.etx.ericsson.se> from ETX-B-SL Martti Kuparinen at "Apr 27, 98 11:06:58 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804271155.NAA03971>