From owner-freebsd-questions@FreeBSD.ORG Thu Jun 5 13:21:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE9E31065674 for ; Thu, 5 Jun 2008 13:21:10 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id AA41C8FC0A for ; Thu, 5 Jun 2008 13:21:10 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from seis.bris.ac.uk ([137.222.10.93]) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1K4FOt-0000u7-Ns for freebsd-questions@freebsd.org; Thu, 05 Jun 2008 14:21:09 +0100 Received: from mech-aslap33.men.bris.ac.uk ([137.222.184.33]) by seis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1K4FOt-0002Hx-2y for freebsd-questions@freebsd.org; Thu, 05 Jun 2008 14:21:07 +0100 Received: from mech-aslap33.men.bris.ac.uk (localhost [127.0.0.1]) by mech-aslap33.men.bris.ac.uk (8.14.2/8.14.2) with ESMTP id m55DL6CT052010 for ; Thu, 5 Jun 2008 14:21:06 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-aslap33.men.bris.ac.uk (8.14.2/8.14.2/Submit) id m55DL6To052009 for freebsd-questions@freebsd.org; Thu, 5 Jun 2008 14:21:06 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-aslap33.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Thu, 5 Jun 2008 14:21:06 +0100 From: Anton Shterenlikht To: freebsd-questions@freebsd.org Message-ID: <20080605132106.GA51988@mech-aslap33.men.bris.ac.uk> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Spam-Score: -1.3 X-Spam-Level: - Subject: size of executable - g95 vs gfortran42 - shared libs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2008 13:21:11 -0000 I use two different fortran90 compiler on a simple input file and get executables which differ in size by almost 3 orders of magnitude, see below. Is this something to do with the use of shared libraries? % gfortran42 tmp.f90 % ls -al a.out -rwxr-xr-x 1 9179 5 Jun 14:15 a.out % g95 tmp.f90 % ls -al a.out -rwxr-xr-x 1 546413 5 Jun 14:15 a.out % The program results seem to be identical. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423