From owner-freebsd-hackers Mon Apr 27 02:08:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA24237 for freebsd-hackers-outgoing; Mon, 27 Apr 1998 02:08:19 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from penguin.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA24222 for ; Mon, 27 Apr 1998 02:08:12 -0700 (PDT) (envelope-from erakupa@kk.etx.ericsson.se) Received: from kkb3 (kkb3.kk.etx.ericsson.se [130.100.97.23]) by penguin.wise.edt.ericsson.se (8.7.5/8.7.3/glacier-1.12) with SMTP id LAA04530 for ; Mon, 27 Apr 1998 11:07:19 +0200 (MET DST) Received: from kk662.kk.etx.ericsson.se by kkb3 (SMI-8.6/LME-2.2.6) id LAA04237; Mon, 27 Apr 1998 11:06:57 +0200 From: erakupa@kk.etx.ericsson.se (ETX-B-SL Martti Kuparinen) Received: by kk662.kk.etx.ericsson.se (SMI-8.6/client-1.6) id LAA08665; Mon, 27 Apr 1998 11:06:58 +0200 Date: Mon, 27 Apr 1998 11:06:58 +0200 Message-Id: <199804270906.LAA08665@kk662.kk.etx.ericsson.se> To: hackers@FreeBSD.ORG Subject: how to get number of instructions in a prg X-Sun-Charset: US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What is the easiest way to count the number of assembler instructions in a program? In gdb there is the "disassemble function-name" command, but it disassembles only the given function. One could of course call this several times and each time count the lines, but since a program can have several hundred small sub-functions, this method is not the best... Thanks in advance, Martti To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message