From owner-freebsd-hackers Mon Sep 30 07:56:10 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA28790 for hackers-outgoing; Mon, 30 Sep 1996 07:56:10 -0700 (PDT) Received: from gatekeeper.ctron.com (ctron.com [134.141.197.25]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA28738 for ; Mon, 30 Sep 1996 07:56:06 -0700 (PDT) Received: (from news@localhost) by gatekeeper.ctron.com (8.6.12/8.6.9) id KAA25211 for ; Mon, 30 Sep 1996 10:56:04 -0400 Received: from stealth.ctron.com(134.141.5.107) by gatekeeper via smap (V1.3mjr) id sma025190; Mon Sep 30 10:55:56 1996 Received: from thoth.ctron.com by stealth.ctron.com (4.1/SMI-4.1) id AA14935; Mon, 30 Sep 96 10:52:45 EDT Received: from thoth (localhost [127.0.0.1]) by thoth.ctron.com (8.6.12/8.6.12) with SMTP id KAA03864 for ; Mon, 30 Sep 1996 10:57:13 -0400 Message-Id: <324FDFC8.150F@ctron.com> Date: Mon, 30 Sep 1996 10:57:12 -0400 From: Alexander Seth Jones Organization: Cabletron Systems, Inc. X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.4 sun4m) Mime-Version: 1.0 To: hackers@freefall.freebsd.org Subject: device driver optimization Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I'm writing a device driver that works as expected when I compile with the "-g" option, but as soon as I compile with "-O" it no longer works as expected. Is there a good, systematic way to approach solving this? I could examine the assembly code between the two versions, I guess, but I was hoping there was a better way. -- Alex Jones | ajones@ctron.com Cabletron Systems, Inc. Durham, NH USA 03824