From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] malloc redefinition when linking pcc with 8c programs In-Reply-To: Your message of "Mon, 01 Dec 2003 14:43:18 MST." From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <59142.1070315625.1@t40.swtch.com> Message-Id: Date: Mon, 1 Dec 2003 16:53:45 -0500 Topicbox-Message-UUID: 99de286c-eacc-11e9-9e20-41e7f4b1d025 > On Mon, 1 Dec 2003, Latchesar Ionkov wrote: > > > What about compiling libdraw (and friends) with pcc? > > > > as Russ said, it's a pain in the butt... > > a more elegant solution would be to change the names of the system calls > "behind the scenes" while linking with ape/libc.a for example malloc becomes > apemalloc. with statically linked binaries that should solve my problem... > > unless i'm missing many things. > > "links" (the browser) is such a bloated piece of software that a rewrite for > plan9 seems impossible, you saw the font_include.c example already, which > won't even compile under pcc because it runs out of memory :) i looked at links for a little while but since (iirc) it can't display www.nytimes.com (a seemingly median-difficulty page) properly, i decided it wasn't worth it. also the interface is awful.