[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apple II/IIGS C++ compiler
- Subject: Re: Apple II/IIGS C++ compiler
- From: pausch@saaf.se (Paul Schlyter)
- Date: 19 Nov 2001 08:47:10 +0100
- Newsgroups: comp.sys.apple2
- Organization: Svensk Amat|rAstronomisk F|rening (SAAF)
- References: <9t6r0e$nsdc$1@ID-118921.news.dfncis.de> <9t7l54$mac$1@nserve1.acs.ucalgary.ca> <9t8lcd$5f3$1@merope.saaf.se> <3BF812AF.94141E36@inetnebr.com>
- Xref: archiver1.google.com comp.sys.apple2:15106
In article <3BF812AF.94141E36@inetnebr.com>,
Roy Miller <millers@inetnebr.com> wrote:
> Paul Schlyter wrote:
>
>> Aztec C had two versions which could be run on the Apple II: one
>> native Apple II version, and another version for CP/M which could be
>> ran on Apple II's with a suitable Z80 card.
>
> However, Paul, if memory serves, Aztec C was not a full implimentation
> of the language. Only Byteworks' Orca C was a full ANSI C, at the time
> that it was created.
Indeed very true. However, since Aztec C was released before ANSI C
standardisation even had begun, don't you think it's a bit too much to
require Aztec C to comply to a standard that didn't even exist then?
>> And then you can run AT&T's Cfront, which converts C++ to C. Yep,
>> that's the way early C++ compilers worked: they compiled C++ into
>> (quite unreadable, but compliable) C, and then you ran that C code
>> through your regular C compiler.
>
> And does Cfront run on the II?
Most certainly not -- the resouces on the II is just too small:
64K RAM, 256 bytes stack --- you get the idea.
BTW since Cfront too predated ANSI C, it most certainly won't
require an ANSI C compiler to run.
And since Cfront predated both ANSI C and ANSI C++, quite naturally
Cfront doesn't implement all of ANSI C++ ... <g>
> For that route, seems to me that a cross-complier would make more
> sense, if one really wanted to run a C++, and create programs for the II.
A cross compiler was the assumption here, as I understood it.
> Still, inspiteof your helpful suggestions, I think the answer to his
> question is still "No, there are no C++s that run on any Apple II." And
> only one ANSI C compliant C (by an earlier ANSI standard.)
The answer is also: "Yes, one can write Apple II software in C++ for
the Apple II" ... if one uses the Apple II as only the target system.
That's a pretty tedious route though and I wouldn't want to follow it.
Also: the Apple II is such a small and simple system that C++ isn't
really needed for Apple II software.
--
----------------------------------------------------------------
Paul Schlyter, Swedish Amateur Astronomer's Society (SAAF)
Grev Turegatan 40, S-114 38 Stockholm, SWEDEN
e-mail: pausch at saaf dot se or paul.schlyter at ausys dot se
WWW: http://hotel04.ausys.se/pausch http://welcome.to/pausch