🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #26671

Re: Mark Williams C and single-sided drives

#26671
From: Ron Carl Goodman
Date: Thu, 07 May 1987 09:27
39 lines
2746 bytes
I use MWC with 1meg & 1 ds disk.  I store the compiler, linker, include
libraries on a 512K ram disk.  My program is on drive a and all the utilities
I wanted are on drive a in a:\bin.  This includes make, another editor,
and 26 other utilities (some MW and some PD stuff).  I never have to
swap disks during compiles or to use utilities.  msh has new history
features that are good (vis. !!, !-2, !m).  As far as I can tell, there
really isn't a better set up since having the compiler/linker/libraries
on RamDisk is FAST and having my source code on disk is SAFE.

BTW, I switched recently from Lattice C!
My whole program used to compile in 80 minutes and I had no make system.
Now, it compiles in 11 minutes and a make system as well.
     (no clock, I just load/save the date when I enter/exit msh)
My program used to be >100K and is now about 60K.
Things seem to be running noticably faster.

One strangeness about MWC that noone seems to have mentioned before is
the way it handles short ints and long ints when passed as parameters
to functions.  For example, printf("%d %d\n",65537l); will display
1 1
To print long ints you use printf("%D\n",65537l);
This means you better not pass a long int to a function expecting a
short int or vice versa!  I realize its a good idea anyway, but it
is unusual.  K&R C makes chars, short ints and long ints pass as 4 bytes
and I haven't seen it even mentioned in the docs, except in the printf
routine.  The docs seem very good, maybe I just missed it.

Ron Goodman
-- 
rgoodman@cit-vax.caltech.edu    _______ _________ _________       |
rgoodman@cit-vax.bitnet        /           \#/       \#/          |   Pasadena
rgoodman@cit-vax.uucp         |alifornia    |nstitute |echnology  | California
                               \_______ ___/#\___ of  |           |   U. S. A.
-- 
rgoodman@cit-vax.caltech.edu    _______ _________ _________       |
rgoodman@cit-vax.bitnet        /           \#/       \#/          |   Pasadena
rgoodman@cit-vax.uucp         |alifornia    |nstitute |echnology  | California
                               \_______ ___/#\___ of  |           |   U. S. A.
Technical Details
Message-ID: <2608@cit-vax.Caltech.Edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!cit-vax!rgoodman
References: <136@xrxns.UUCP> <9605@duke.cs.duke.edu>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!cit-vax!rgoodman
From: rgoodman@cit-vax.Caltech.Edu (Ron Carl Goodman)
Newsgroups: comp.sys.atari.st
Subject: Re: Mark Williams C and single-sided drives
Message-ID: <2608@cit-vax.Caltech.Edu>
Date: Thu, 7-May-87 05:27:08 EDT
Article-I.D.: cit-vax.2608
Posted: Thu May  7 05:27:08 1987
Date-Received: Sat, 9-May-87 02:14:32 EDT
References: <136@xrxns.UUCP> <9605@duke.cs.duke.edu>
Organization: California Institute of Technology
Lines: 39
Summary: It works for me???!!!???