Date: Wed, 03 Jun 1998 14:40:25 +0400 From: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> To: Eivind Eklund <eivind@yes.no> Cc: Harlan Stenn <Harlan.Stenn@pfcs.com>, current@FreeBSD.ORG Subject: Re: TenDRA compiler? Message-ID: <199806031040.OAA02191@tejblum.dnttm.rssi.ru> In-Reply-To: Your message of "Wed, 03 Jun 1998 10:29:23 %2B0200." <19980603102923.09157@follo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806031040.OAA02191>
