🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.msdos.programmer
9 messages
9 total messages Started by Eric Postpischil Tue, 26 Dec 1995 16:39
Recommendation for 32-bit C compiler?
#7885
Author: Eric Postpischil
Date: Tue, 26 Dec 1995 16:39
33 lines
2051 bytes
I would like recommendations for a 32-bit C compiler to use on a PC.  I
have Microsoft Visual C/C++ 1.5, but I am sick and tired of having the
segmentation limit my use of stack or other memory. The Visual C manuals
refer to a 32-bit compiler, but if such a thing is present on the
product I have, its location eludes me. Maybe they're referring to some
capability to compile stuff for Win32, which isn't what I want.

I would like a compiler that presents me with a flat address space,
including a nice big stack if I want it. If it has to run with some sort
of shell under DOS, so be it. I'm even willing to install Linux if
necessary.

All I want is ANSI C; I don't need extensions or hooks into the
operating system or Windows capability. This is largely to write
programs that do various computations, often mathematical, sometimes
mostly integer operations and sometimes mostly floating point. Some
extras like a debugger and/or the capability to compile with array
bounds checking would be nice but are not necessary.

What's available? Does such a compiler come with Linux? Does GNU have a
32-bit compiler that runs under DOS? Is there a good shareware compiler
or an inexpensive commercial compiler?


                                -- edp (Eric Postpischil)
                                "Always mount a scratch monkey."
                                edp@edp.org


Disclaimer:  The opinions of Digital Equipment Corporation do not reflect mine.

Public key fingerprint:  8e ad 63 61 ba 0c 26 86  32 0a 7d 28 db e7 6f 75.
To get PGP, FTP /pub/pgp/pgp26uis.zip or pgp26uix.zip from ftp.demon.co.uk.
Re: Recommendation for 32-bit C compiler?
#7886
Author: barrym
Date: Tue, 26 Dec 1995 20:21
57 lines
3298 bytes
You might want to look at Watcom C.  It comes with a Dos extender that
allows you to work in flat memory model and still make dos and bios
calls for i/o.  Also there are a number of such extenders, both
commercial and shareware, that will work with your compiler.  I'm not
sure if you can use them within Windows, but underneath all that VC++
gingerbread is a normal command line compiler;  MSC 8.0.

Watcom's debugger might work with their extender.  I haven't used it so
I'm not sure.

A simpler approach that can be used in a few situations is to find the
file unreal10.zip at some ftp site.  It shows how to set up flat
memory and run dos and dos programs with no problems.  The program
has to load within the 1 meg area because dos is limited to that, but
it has all of memory to play with.  The problem with it is that you
can't run a program that goes into protected mode and you can't have
a memory manager.  Other than that it works just fine.

I hope that helps.

Barry


Eric Postpischil (edp@math.zk3.dec.com) wrote:
: I would like recommendations for a 32-bit C compiler to use on a PC.  I
: have Microsoft Visual C/C++ 1.5, but I am sick and tired of having the
: segmentation limit my use of stack or other memory. The Visual C manuals
: refer to a 32-bit compiler, but if such a thing is present on the
: product I have, its location eludes me. Maybe they're referring to some
: capability to compile stuff for Win32, which isn't what I want.

: I would like a compiler that presents me with a flat address space,
: including a nice big stack if I want it. If it has to run with some sort
: of shell under DOS, so be it. I'm even willing to install Linux if
: necessary.

: All I want is ANSI C; I don't need extensions or hooks into the
: operating system or Windows capability. This is largely to write
: programs that do various computations, often mathematical, sometimes
: mostly integer operations and sometimes mostly floating point. Some
: extras like a debugger and/or the capability to compile with array
: bounds checking would be nice but are not necessary.

: What's available? Does such a compiler come with Linux? Does GNU have a
: 32-bit compiler that runs under DOS? Is there a good shareware compiler
: or an inexpensive commercial compiler?


:                                 -- edp (Eric Postpischil)
:                                 "Always mount a scratch monkey."
:                                 edp@edp.org


: Disclaimer:  The opinions of Digital Equipment Corporation do not reflect mine.

: Public key fingerprint:  8e ad 63 61 ba 0c 26 86  32 0a 7d 28 db e7 6f 75.
: To get PGP, FTP /pub/pgp/pgp26uis.zip or pgp26uix.zip from ftp.demon.co.uk.
Re: Recommendation for 32-bit C compiler?
#7887
Author: Jason Naughton
Date: Wed, 27 Dec 1995 19:20
38 lines
2477 bytes
Eric Postpischil (edp@math.zk3.dec.com) wrote:
: I would like a compiler that presents me with a flat address space,
: including a nice big stack if I want it. If it has to run with some sort
: of shell under DOS, so be it. I'm even willing to install Linux if
: necessary.

: All I want is ANSI C; I don't need extensions or hooks into the
: operating system or Windows capability. This is largely to write
: programs that do various computations, often mathematical, sometimes
: mostly integer operations and sometimes mostly floating point. Some
: extras like a debugger and/or the capability to compile with array
: bounds checking would be nice but are not necessary.

: What's available? Does such a compiler come with Linux? Does GNU have a
: 32-bit compiler that runs under DOS? Is there a good shareware compiler
: or an inexpensive commercial compiler?


		I was faced with the same thing.  I was developing a software
package for the geophysics department over at Western university.
The seismic data sets that these people were using were just gigantic.
They wanted to be able to wave shape, generate the frequency spectrum
and perform a few manipulations which had to force the data set to be
resident in memory.  I attempted the extended memory trick copying
large chunks of memory back and forth so that I could perform the
calculations that were needed.  As I coded the software under dos I
was essentially developing along side some memory management routines.
Later I found that they had access to a Unix based OS and that memory
resources where not an issue.  Well the development changed so
dramatically.  I found it a pleasure to code under Linux.  I wrote
the code so it could be easily just recompiled for any version of
Solaris.

		I would suggest to just jump to linux and develop there then
to attempt to wrestle with DOS or Windows...

		Cheers
				Jason Naughton
Re: Recommendation for 32-bit C compiler?
#7888
Author: Robert Schaefer
Date: Fri, 29 Dec 1995 13:20
48 lines
2824 bytes
In article <4bp8fd$7an@nntpd.lkg.dec.com>,
Eric Postpischil <edp_usenet_zk@edp.org> wrote:
>I would like recommendations for a 32-bit C compiler to use on a PC.  I
>have Microsoft Visual C/C++ 1.5, but I am sick and tired of having the
>segmentation limit my use of stack or other memory. The Visual C manuals
>refer to a 32-bit compiler, but if such a thing is present on the
>product I have, its location eludes me. Maybe they're referring to some
>capability to compile stuff for Win32, which isn't what I want.
>
>I would like a compiler that presents me with a flat address space,
>including a nice big stack if I want it. If it has to run with some sort
>of shell under DOS, so be it. I'm even willing to install Linux if
>necessary.
>
>All I want is ANSI C; I don't need extensions or hooks into the
>operating system or Windows capability. This is largely to write
>programs that do various computations, often mathematical, sometimes
>mostly integer operations and sometimes mostly floating point. Some
>extras like a debugger and/or the capability to compile with array
>bounds checking would be nice but are not necessary.
>
>What's available? Does such a compiler come with Linux? Does GNU have a
>32-bit compiler that runs under DOS? Is there a good shareware compiler
>or an inexpensive commercial compiler?
>
>


If you want to stick with commercial compilers, then your best bet is
probably to look at Watcom C, as someone else suggested.  If you don't
mind going the shareware route, then you have djgpp.  Its a DOS port of
the GNU C/C++ compilers.  It is very stable, and not overly difficult to
use.  It has a debugger that you can pick up separately.  I'm not sure
how robust the debugger is, I haven't used it.  The documentation is
typical GNU and Unix, cryptic and not overly informative, unless you
already know what your doing.  But over all, its a VERY good compiler
for the money.

If you would like more functionality, power, etc, then I would recommend
you load on Linux.  Its a true 32bit multitasking/multiuser OS.  The
problem is, it takes a lot of space and can be difficult to maintain.  It
requires more care and feeding than your standard MS OS, but it gives
you more power and flexibility.  So basically it all depends on what you
really want to do, and how much time you want to spend doing it.

Bob Schaefer
rjsc@win.comc
rjsc@lubrizol.com
Re: Recommendation for 32-bit C compiler?
#7889
Author: gbutler Gerald E. Butler
Date: Sun, 31 Dec 1995 17:19
15 lines
1223 bytes
Eric Postpischil (edp@math.zk3.dec.com) wrote:

: What's available? Does such a compiler come with Linux? Does GNU have a
: 32-bit compiler that runs under DOS? Is there a good shareware compiler
: or an inexpensive commercial compiler?


	Does Linux come with a compiler?  The simple answer is "Yes". GNU 
C, C++ and Objective C ( gcc, g++ ).  To be exact though, "Linux" does not 
come with compilers, it's _only_ a kernel. The various distributions, slackware
for example, come with the compilers and lots of other neat stuff.  I say,
check it out; it is an outstanding and inexpensive operating system.

	Have a Nice Day! 8-)
		gbutler@res.kent.edu.
Re: Recommendation for 32-bit C compiler?
#7898
Author: rootetcHOSTNAME root
Date: Tue, 02 Jan 1996 01:20
37 lines
2482 bytes
Eric Postpischil (edp@math.zk3.dec.com) wrote:
*chop*

: I would like a compiler that presents me with a flat address space,
: including a nice big stack if I want it. If it has to run with some sort
: of shell under DOS, so be it. I'm even willing to install Linux if
: necessary.

: All I want is ANSI C; I don't need extensions or hooks into the
: operating system or Windows capability. This is largely to write
: programs that do various computations, often mathematical, sometimes
: mostly integer operations and sometimes mostly floating point. Some
: extras like a debugger and/or the capability to compile with array
: bounds checking would be nice but are not necessary.

: What's available? Does such a compiler come with Linux? Does GNU have a
: 32-bit compiler that runs under DOS? Is there a good shareware compiler
: or an inexpensive commercial compiler?
     GCC comes with any Linux distribution.. gcc-2.7.0 is the most recent
version that's stable.  (2.7.2 is most recent but the info file says it has
bugs on x86 compiling.)  2.6.x and 2.5.8 is also fine.  It is of course
32-bit, and is free 8-).  ANSI C, reasonably close to the recent drafts of
ANSI C++ (and objective-C ability is there too), and with Linux's include
files, almost all BSD stuff will compile, POSIX compliant, a few other
things compatible 8-).
     DJGPP is a compiler that along with some runtime 32-bit DOS extender
provides flat memory for DOS.. I don't know where to get it from though. 
There should be a pointer at ftp.gnu.ai.mit.edu.
:                                 -- edp (Eric Postpischil)
:                                 "Always mount a scratch monkey."
:                                 edp@edp.org


: Disclaimer:  The opinions of Digital Equipment Corporation do not reflect mine.

: Public key fingerprint:  8e ad 63 61 ba 0c 26 86  32 0a 7d 28 db e7 6f 75.
: To get PGP, FTP /pub/pgp/pgp26uis.zip or pgp26uix.zip from ftp.demon.co.uk.
Re: Recommendation for 32-bit C compiler?
#7899
Author: Chuck Fleming
Date: Wed, 03 Jan 1996 22:26
29 lines
1749 bytes
Gerald E. Butler (gbutler@usenet.kent.edu.) wrote:
: Eric Postpischil (edp@math.zk3.dec.com) wrote:

: : What's available? Does such a compiler come with Linux? Does GNU have a
: : 32-bit compiler that runs under DOS? Is there a good shareware compiler
: : or an inexpensive commercial compiler?


: 	Does Linux come with a compiler?  The simple answer is "Yes". GNU 
: C, C++ and Objective C ( gcc, g++ ).  To be exact though, "Linux" does not 
: come with compilers, it's _only_ a kernel. The various distributions, slackware
: for example, come with the compilers and lots of other neat stuff.  I say,
: check it out; it is an outstanding and inexpensive operating system.

: 	Have a Nice Day! 8-)
: 		gbutler@res.kent.edu.


If you're doing numerical stuff, I would highly recommend Linux over dos. 
From my person experience, using either C or Maple, Linux is several times
faster, even on a machine with less memory.  There are also a huge number
of mathematical packages that have been ported to linux that can be ftp'd
for nothing (Sorry maple isn't one of them)  Scilab for example (lathough it
seems a little quirky sometimes) is a matlab look alike that works quite well
.

Have fun,
Chuck Fleming
University of Southern Miss.
Re: Recommendation for 32-bit C compiler?
#7900
Author: gbutler Gerald E. Butler
Date: Thu, 04 Jan 1996 00:35
9 lines
890 bytes
Chuck Fleming (cfleming@netdoor.com) wrote:

: for nothing (Sorry maple isn't one of them)  Scilab for example (lathough
                                               ^^^^^^

	Where can I find "Scilab"?  Sounds neat!

		Have a Nice Day! 8-)
			gbutler@res.kent.edu.
Re: Recommendation for 32-bit C compiler?
#7901
Author: The Knight Who Says Ni!
Date: Tue, 09 Jan 1996 20:49
16 lines
1182 bytes
edp@math.zk3.dec.com (Eric Postpischil) was overheard mumbling
incoherently about Recommendation for 32-bit C compiler?:
>What's available? Does such a compiler come with Linux? Does GNU have a
>32-bit compiler that runs under DOS? Is there a good shareware compiler
>or an inexpensive commercial compiler?

Yes.  It's called DJGPP.  Check http://www.delorie.com/djgpp/.  Be
careful, there are 7 or 8 files you have to download, so read the faq
first.
 _______________________________
/ \  The Knight Who Says "Ni!"  \
\_|                             |
  |   I'm not nearly as think   |
  |    as you confused I am.    |
  |  ___________________________|_
  \_/____________________________/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads