From mint-bounce@lists.fishpool.fi  Fri Oct 21 02:12:28 2005
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Subject: Re: [MiNT] Compiling with gcc: ld eats all ram
From: Evan Langlois <Evan@CoolRunningConcepts.com>
To: Miro Kropacek <mikro@hysteria.sk>
Cc: Mint list <mint@fishpool.com>
In-Reply-To: <43575D24.3090909@hysteria.sk>
References: <43566F18.9000405@shaw.ca>
	 <1129738352.24801.6.camel@mduckworth.phillypark.net>
	 <20051019183017.0d614e89.mandin.patrice@wanadoo.fr>
	 <43575D24.3090909@hysteria.sk>
Content-Type: text/plain
Date: Thu, 20 Oct 2005 19:09:15 -0500
Message-Id: <1129853355.25585.6.camel@taro.coolrunningconcepts.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.4.1 
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - esc14.midphase.com
X-AntiAbuse: Original Domain - fishpool.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - CoolRunningConcepts.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: Evan@CoolRunningConcepts.com
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=2.2 tagged_above=-50.5 required=7.0 tests=AWL,
 BAYES_00, RCVD_IN_SORBS
X-Spam-Level: **

On Thu, 2005-10-20 at 11:02 +0200, Miro Kropacek wrote:
> I think you're too unfair to gcc - it's true it takes more memory than 
> pure c :) but simple hello world is compilable. Try to decrease harddisk 
> cache to minimum and compile it in console, not under XaAES/N.AES. I 
> coded even more complicated programs with 14 MB falcon in this way.

Considering my mail reader is currently using 166MB of memory, GCC isn't
all that much of a hog by comparison.

If anyone with a lot of C experience wants to tackle porting a compiler,
the TCC compiler uses very little memory and compiles about 12 times
faster than GCC.  Its so fast you can actually use C as a script
language and use "#!/usr/bin/tcc -run" at the top of your C file to
compile and run it in one step .. or link your program with libtcc and
you can compile C from plain strings in your own programs, allowing you
to use C as embedded scripting language!  There's even a Linux
bootloader available that will compile your whole kernel using TCC on
the fly as you boot (allowing systems to insert/remove options based on
hardware detection).

TCC is much easier to port than GCC, but of course, there is a lot of
Atari specific stuff you'd have to mess with.  Its designed to be
largely compatible with GCC, so options and object files should be
compatible.

-- Evan


