From mint-bounce@lists.fishpool.fi Sat Oct 22 02:30:41 2005 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Message-ID: <435985FD.6000308@chello.nl> Date: Sat, 22 Oct 2005 02:21:17 +0200 From: Henk Robbers User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mint list Subject: Re: [MiNT] Compiling with gcc: ld eats all ram References: <43566F18.9000405@shaw.ca> <1129738352.24801.6.camel@mduckworth.phillypark.net> <20051019183017.0d614e89.mandin.patrice@wanadoo.fr> <43575D24.3090909@hysteria.sk> <1129853355.25585.6.camel@taro.coolrunningconcepts.com> In-Reply-To: <1129853355.25585.6.camel@taro.coolrunningconcepts.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: h.robbers@chello.nl Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: 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.1 tagged_above=-50.5 required=7.0 tests=BAYES_00, RCVD_IN_SORBS X-Spam-Level: ** Evan Langlois wrote: > 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. > Think of the bandwith that is wasted while moving all this bloat around on the internet. ;-) > 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). > That sounds more like it should be. Plain C is by far the easiest language to compile. The anatomy of GCC is a obstacle to new idees about the practice of computer programming in a modern world. > 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. > Interesting. -- Groeten; Regards. Henk Robbers. mailto:h.robbers@chello.nl http://members.ams.chello.nl/h.robbers/Home.html Interactive disassembler: TT-Digger; http://digger.atari.org A Home Cooked teXt editor: AHCX