From owner-freebsd-current Wed Jun 3 03:54:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA18273 for freebsd-current-outgoing; Wed, 3 Jun 1998 03:54:37 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from helios.dnttm.ru (root@dnttm-gw.rssi.ru [193.232.0.205]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA18246 for ; Wed, 3 Jun 1998 03:54:11 -0700 (PDT) (envelope-from dima@tejblum.dnttm.rssi.ru) Received: (from uucp@localhost) by helios.dnttm.ru (8.8.5/8.8.5/IP-3) with UUCP id OAA27431; Wed, 3 Jun 1998 14:36:55 +0400 Received: from tejblum.dnttm.rssi.ru (localhost [127.0.0.1]) by tejblum.dnttm.rssi.ru (8.8.8/8.8.7) with ESMTP id OAA02191; Wed, 3 Jun 1998 14:40:25 +0400 (MSD) (envelope-from dima@tejblum.dnttm.rssi.ru) Message-Id: <199806031040.OAA02191@tejblum.dnttm.rssi.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: Eivind Eklund cc: Harlan Stenn , current@FreeBSD.ORG Subject: Re: TenDRA compiler? In-reply-to: Your message of "Wed, 03 Jun 1998 10:29:23 +0200." <19980603102923.09157@follo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 03 Jun 1998 14:40:25 +0400 From: Dmitrij Tejblum Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eivind Eklund wrote: > On Tue, Jun 02, 1998 at 06:22:46PM -0400, Harlan Stenn wrote: > > I just installed the TenDRA compiler on one of my boxes (I used the port). > > > > Unfortunately, tcc doesn't seem to see any of the system #include files. > > If you don't tell TenDRA otherwise, it will run in its own 'sandbox' > (called environment), to make sure you create portable code. The envirnoment highly isolated from the real life, and that allow TenDRA to compile portable programs which cannot be compiled by any traditional compiler. For example, TenDRA correctly compile following program: ---------------------------------------- #define __sFILE int #include struct wonderful { __sFILE stdout, getc; }; int main(int argc, char** argv) { struct wonderful ww; ww.stdout = 5; ww.getc = 7; fprintf(stdout, "ww=(%d, %d)\n", ww.stdout, ww.getc); return 0; } ----------------------------------------------- :-) Dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message