home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!alexia!cole
- From: cole@alexia.lis.uiuc.edu (Sandra Stewart-Cole)
- Subject: Re: C vs. PASCAL
- References: <1992Dec17.123250.20685@yang.earlham.edu>
- Message-ID: <BzG42D.2sC@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Date: Fri, 18 Dec 1992 08:10:59 GMT
- Lines: 36
-
-
- The C vs. Pascal question is a bit hard on the Mac. The 'native language' of
- the Mac is Pascal. That means that all the first edition Inside Mac sample code
- and the best 3rd-party Mac programming manuals are Pascal-oriented. All the
- system calls use Pascal-style calling conventions (semms like arcana until you
- actually have to deal with it, at which point it becomes a constant hassle for
- C and asm mixed work) And most salient: Think Pascal is the most highly
- evolved, smoothest, friendliest tool for creating Mac applications. For folks
- on a budget, it is the only real Pascal choice, and since it is the direct
- descendant of the earliest Mac and Lisa development systems, it has had a long
- time to be refined into a really nice tool. HOWEVER(!), even Think Pascal has
- the common drawbacks of any Pascal vs. C: more rigid rules and looser final
- code. As an example, I have a program I originally developed in Pascal. I
- recently ported it to C. It is very small to begin with, just 10k compiled in
- Pascal, but the C version is all of 2k. Most of that is inevitably a fixed-size
- overhead (i.e. a 20k app in Pascal might be well over 10k in C...) but if you
- really need tight final code, you're better off with C. Ditto if portability is
- critical (Think Pascal actually ports pretty well since it resembles Turbo
- Pascal a bit, but since the Pascal standard is a bit thin and dated, no decent
- Pascal is totally portable)
-
- In the final analysis, it depends on what you want to do. If you intend to
- program for others and for pay, you really need to learn C, and should probably
- start now. If you are just going to be doing a few little things for yourself
- and maybe little shareware stuff, Pascal will definitely be faster in
- development, and so you will have the product sooner, even if it is a bit
- larger. If you can swing it, consider getting BOTH a C and Pascal compiler.
- recently Symantec (the Think folks, due to a merger) ran a neat little promo
- where all their registered owners of both Think systems got good deals on the
- other one. This MIGHT still be around, so you could get the pair pretty
- reasonably. btw: I only mention the Think packages because they are the only
- credible systems that don't require Apple's MPW, which is NOT a reasonable
- option for your Plus, and maybe not for a lot of people with bigger Macs.
-
- PS: if you like Downline, try the new Stuffit Expander, that is both more
- reliable and more capable than Downline, and is absolutely free.
-