On Wed, Apr 28, 2004 at 03:01:50PM +0300, Mats Byggmastar wrote: > Just joined the list, as I found CC65 a couple of days ago. Welcome! > I've done some simple tests with the CC65 tools and found that the > assembler and linker would be usable as is. However, it would be > extremely cool to also be able to use the C compiler and parts > of the standard librarys. Maybe someone has done something already > for EMMA II ? If not, where would I start, making the appropriate > changes in crt0.s and so on. Any hints and help would be > appreciated. You will have to come up with a memory layout, and generate a linker config for it. With a linker config and a working crt0 file, you can start writing C programs. But keep in mind that 1.5K of RAM is not much, there are C functions with almost that size (the printf family of functions for example). As for the crt0 file, the best approach would be to have a look at one of the existing ones, for example that of the c16 (it's a good example because it is rather small). There is no documentation on "how to create the necessary code for a new system", but the minimum requirements are rather small as said above. If you have any more specific questions, feel free to ask. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Wed Apr 28 21:39:08 2004
This archive was generated by hypermail 2.1.8 : 2004-04-28 21:39:15 CEST