Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.cbm » 6502 cross compiler
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
6502 cross compiler [message #64918] Sat, 18 May 2013 21:01 Go to next message
Anonymous
Karma:
Originally posted by: judah@hou2h.UUCP (J.KAMINETSKY)
Message-ID: <470@hou2h.UUCP>
Date: Tue, 29-May-84 16:21:37 EDT
Article-I.D.: hou2h.470
Posted: Tue May 29 16:21:37 1984
Date-Received: Fri, 1-Jun-84 06:04:47 EDT
Distribution: net.lang.c
Organization: AT&T Bell Labs, Holmdel NJ
Lines: 5

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
Re: 6502 cross compiler [message #66825 is a reply to message #64918] Sun, 19 May 2013 23:24 Go to previous message
janney is currently offline  janney
Messages: 12
Registered: May 2013
Karma: 0
Junior Member
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.
Re: 6502 cross compiler [message #66829 is a reply to message #64918] Sun, 19 May 2013 23:24 Go to previous message
parker is currently offline  parker
Messages: 11
Registered: May 2013
Karma: 0
Junior Member
Message-ID: <7274@rochester.UUCP>
Date: Tue, 5-Jun-84 02:19:33 EDT
Article-I.D.: rocheste.7274
Posted: Tue Jun  5 02:19:33 1984
Date-Received: Wed, 6-Jun-84 06:29:52 EDT
References: <470@hou2h.UUCP>, <919@unm-cvax.UUCP>
Organization: U. of Rochester, CS Dept.
Lines: 16

No fan fair, but you might want to check out the ACTION! language/compiler
which is marketed by Optimized Systems Software, 1173-D Saratoga-Sunnyvale Rd.,
San Jose, CA   95129.  It generates fast native 6502 code.

I wish people wouldn't go around saying that it isn't possible to have a good
High Level language for the 6502.  It is, maybe not C or PASCAL, but in general
it is only the automatic variables (recursion) of these languages that cause
problems in generating good code.  Most programmers don't use recursive routines
in the code they write, so giving up a HLL compiler just for this doesn't make
too much sense.  The subset of the ACTION! language implemented on the Atari
and C64 therefore don't support recursion.

Hope that this might help out those looking for a HLL for the 6502.

	- Clint
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Speedscript Enhancements
Next Topic: Re: "Where's the software?" - (nf)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Mar 28 20:07:05 EDT 2024

Total time taken to generate the page: 0.08305 seconds