delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/10/12/04:17:16

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rod Pemberton <donthave AT noreply DOT bit>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: smallest set of files needed
Date: Wed, 12 Oct 2005 08:13:48 +0000 (UTC)
Organization: cyberjustice.org
Lines: 107
Message-ID: <diigjr$loe$1@sadr.dfn.de>
References: <1f9 DOT 1412460d DOT 307dd36a AT aol DOT com>
NNTP-Posting-Host: server1.imagine-host.com
Mime-Version: 1.0
X-Trace: sadr.dfn.de 1129104828 22286 66.28.207.11 (12 Oct 2005 08:13:48 GMT)
X-Complaints-To: usenet AT sadr DOT dfn DOT de
NNTP-Posting-Date: Wed, 12 Oct 2005 08:13:48 +0000 (UTC)
X-User-Real-E-Mail: nobody AT no DOT where DOT com
User-Agent: http://www.cyberjustice.org
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> But it's clear now, that GCC/DJGPP is not a good choice to do
this.
Why?  Too big?

> So, is there another compiler which someone can recommend for this
> purpose ?
Okay, I'll list the reduced files for OpenWATCOM.  I'm not sure if
it is really any smaller...

> (easy to install, handles basic C-commands, few and short files,
compatible,
>  free from copyright/license etc.)
I have yet to see a Public Domain C compiler.  Everything has some
type of restriction...  And, if it doesn't, it is usually too
incomplete to be useful.

> I would even accept if only a subset of C-commands is compiled
> and speed is not so important.
You can also use CIL (C Intermediate Language) (link below) to
simplify C code as much as you want.  CIL is a C to C "translator"
used to eliminate coding errors but also reduces complexity and
posix code to simpler code.

>But it should have good compatibility
> with GCC/DJGPP.
Not likely, due to POSIX, unless you switch to Linux.  There are
alot of simple C compilers for Linux e.g., TCC by F. Bellard (links
below).


Sincerely,

Rod Pemberton


To use the reduced file sets for WATCOM, you'll need to put these
in a .bat file and run it:
SET WATCOM=C:\WATCOM
SET EDPATH=C:\WATCOM\EDDAT
SET INCLUDE=C:\WATCOM\H;C:\WATCOM\H\NT

A minimal set of files for DOS RM OpenWATCOM:
C:\watcom\binw\wcc.exe
C:\watcom\binw\wcl.exe
C:\watcom\binw\wlink.exe
C:\watcom\binw\wlink.lnk
C:\watcom\binw\wlsystem.lnk
C:\watcom\binw\wstub.exe
C:\watcom\h\*.h
C:\watcom\h\sys\*.h
C:\watcom\lib286\dos\clibs.lib
C:\watcom\lib286\dos\emu87.lib
C:\watcom\lib286\dos\graph.lib
C:\watcom\lib286\math87s.lib

A minimal set of files for DOS PM OpenWATCOM:
C:\watcom\binw\wcc386.exe
C:\watcom\binw\wcl386.exe
C:\watcom\binw\wlink.exe
C:\watcom\binw\wlink.lnk
C:\watcom\binw\wlsystem.lnk
C:\watcom\binw\wstub.exe
C:\watcom\h\*.h
C:\watcom\h\sys\*.h
C:\watcom\lib386\dos\clib3r.lib
C:\watcom\lib386\dos\clib3s.lib
C:\watcom\lib386\dos\emu387.lib
C:\watcom\lib386\dos\graph.lib
C:\watcom\lib386\math387r.lib
C:\watcom\lib386\math387s.lib
C:\watcom\lib386\math3r.lib
C:\watcom\lib386\math3s.lib


Simple C compilers for DOS:

smallC86 and smc88dos from here:
http://www.retroarchive.org/cpm/archive/unofficial/download/

smc386c will could easily be retargetd to tasm, etc...
http://www.physics.rutgers.edu/~vitchev/smallc-i386.html

CIL (C Intermediate Language)
CIL (C Intermediate Language)  http://manju.cs.berkeley.edu/cil/

There is some limited 16bit support for DJGPP

DJGPP's gcc patches/djlink/nasm
http://www.delorie.com/djgpp/16bit/djlink/
http://www.delorie.com/djgpp/16bit/

Simple C compilers floating around the internet that should compile
for Linux:

Small C by Ron Cain (large number of microprocessors)
FBCC and TCC by Fabrice Bellard
BCC by Bruce Evans (from ELKS)
Linux's Dev86 (from ELKS)
OXCC C Compiler by Norman Culver
PCC by C Ware Corporation
Pacific C by Hitech Soft
Amsterdam Compiler Kit
Micro C by Dave Dunfield
OSD (includes C compiler) by Chris Giese

--
Posted via: http://www.cyberjustice.org

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019