[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Aztec C: C ++??
In article <1ifinps.1ok5hd31bf02e5N%dempson@actrix.gen.nz>,
David Empson <dempson@actrix.gen.nz> wrote:
><aiiadict@gmail.com> wrote:
>
>> In article <9t7l54$ma...@nserve1.acs.ucalgary.ca>,
>> Byron Desnoyers Winmill <wbdes...@acs5.acs.ucalgary.ca> wrote:
>>
>>
>> > In article <9t6r0e$nsd...@ID-118921.news.dfncis.de> you wrote:
>> > : does anybody know of a C++ compiler for the Apple II series, or
>> > : indeed for any 6502/65C816 series?
>>
>> > There is a C cross compiler at http://www.cc65.org/ which supports
>> > a number of 6502 machines. I haven't tried it though.
>>
>> 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.
>>
>> 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.
>
>Does Cfront expect an ANSI C compiler? If so, it won't work with Aztec
>C, as Aztec C is an antique K&R compiler, with a few extensions. It
>isn't ANSI-compliant.
Since early C++ predated ANSI C, and since the UNIX world was a bit
conservative in switching from K&R C to ANSI C, most likely CFront
ran fine on K&R C compilers.
http://en.wikipedia.org/wiki/CFront
>--
>David Empson
>dempson@actrix.gen.nz
--
----------------------------------------------------------------
Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN
e-mail: pausch at stjarnhimlen dot se
WWW: http://stjarnhimlen.se/