Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.programmer.help > #37

Re: Size of executables built with Xcode

From Paul Sture <paul.nospam@sture.ch>
Newsgroups comp.sys.mac.programmer.help
Subject Re: Size of executables built with Xcode
Organization SQLite and PostgreSQL
References <timstreater-927521.21484317062011@news.individual.net>
Date 2011-07-10 23:33 +0200
Message-ID <paul.nospam-92BDE5.23335910072011@pbook.sture.ch> (permalink)

Show all headers | View raw


In article <timstreater-927521.21484317062011@news.individual.net>,
 Tim Streater <timstreater@waitrose.com> wrote:

> Today I felt like rebuilding sqlite3, the CLI front end to SQLite. I 
> downloaded the source and that of the SQLite library from their website, 
> and shoved it into a new C project. I also found out where libedit.dylib 
> was hiding and persuaded Xcode to link against it. So that gave me an 
> executable which can use sqlite3's history stack and do command editing 
> for when I recall an sql command. So, the same functionality that comes 
> anyway with the supplied version of sqlite3 (I'm on OS X 10.6.7, using 
> Xcode 3.2.6) albeit with a bang up to date version of the sqlite library.
> 
> But, the executable is *much* bigger than the one that comes with OS X. 
> See here:
> 
> Second-Mini% ls -la sqlite3*
> -rwxr-xr-x@ 1 tim   tim    912448 17 Jun 18:54 sqlite3
> -rwxr-xr-x  1 root  wheel  160176 24 Jun  2010 sqlite3-old
> 
> 
> More than five times bigger. Am I overlooking some Xcode options?
> 

Apologies for the tardy reply, but my first reaction is that by going 
the Xcode route you have a load of GUI support compiled or linked in.

I try to keep reasonably up to date with sqlite3 and use the make files 
included with sqlite3.  It's a pretty painless process - I first did it 
before there was official support for OS X and even as a then novice 
with make I didn't have any problems.  FWIW my PPC version of sqlite3 is 
only 45200 bytes.

-- 
Paul Sture

Back to comp.sys.mac.programmer.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Size of executables built with Xcode Tim Streater <timstreater@waitrose.com> - 2011-06-17 21:48 +0100
  Re: Size of executables built with Xcode Richard Kettlewell <rjk@greenend.org.uk> - 2011-06-17 22:06 +0100
    Re: Size of executables built with Xcode Tim Streater <timstreater@waitrose.com> - 2011-06-17 22:40 +0100
      Re: Size of executables built with Xcode Richard Kettlewell <rjk@greenend.org.uk> - 2011-06-17 23:09 +0100
  Re: Size of executables built with Xcode Paul Sture <paul.nospam@sture.ch> - 2011-07-10 23:33 +0200
    Re: Size of executables built with Xcode Tom Harrington <tph@pcisys.no.spam.dammit.net> - 2011-07-11 09:57 -0600
      Re: Size of executables built with Xcode Paul Sture <paul.nospam@sture.ch> - 2011-07-12 03:35 +0200

csiph-web