Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site unm-cvax.UUCP Path: utzoo!watmath!clyde!akgua!sdcsvax!sdcrdcf!hplabs!hao!seismo!cmcl2!lanl-a!unm-cvax!janney From: janney@unm-cvax.UUCP Newsgroups: net.micro.cbm Subject: Re: 6502 cross compiler Message-ID: <919@unm-cvax.UUCP> Date: Wed, 30-May-84 15:59:20 EDT Article-I.D.: unm-cvax.919 Posted: Wed May 30 15:59:20 1984 Date-Received: Tue, 5-Jun-84 08:23:19 EDT References: <470@hou2h.UUCP> Organization: Univ. of New Mexico, Albuquerque Lines: 11 > I have read that a 6502 or 6510 C compiler is not realistic? > What about a cross-compiler that runs on UNIX (or CPM) and generates > 6502 or 6510 code for download? > > hou2h!judah Cross compiling will not solve the basic problem, which is the architecture of the 6502: the lack of a 16-bit index register makes it difficult to support automatic variables. Running the compiler on a VAX-class machine would probably allow better code generation. There's some interesting things that might be done to optimise address calculations.