Ullrich von Bassewitz <uz@musoftware.de> wrote: On Fri, Feb 17, 2006 at 07:25:30AM -0800, Payton Byrd wrote: > > http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme/acme.html > > would be great to get this ported to the Apple II! > > Maybe this isn't the perfect place for that because this mailing list is > about the cc65 package which already comes with the - at least in my opinion > great - ca65 cross assembler ;-) If I understood him correctly, the question was about running the assembler natively on the Apple by compiling it with cc65. As a testcase, I've tried to translate the ca65 source with cc65. There are two problems: 1. Assignments like struct foo f = { ... }; void func (void) { struct foo bar = f; ... } do not work. 2. The code generator is not able to access local variables with more than 256 bytes in all cases (that is: it depends on the code if this will work or not). The former is solvable and will be solved, but I fear that the latter is a permanent limitation. Allowing more than 256 bytes of local variables would be possible, but it needs big and slow code for variable access, since it is no longer possible to access the data via (sp),y using an index register. So I don't think it's really worth the trouble. What I couldn't try because of above errors is if the resulting executable would run on or even link for one of the 6502 platforms. The linux executable for ca65 has ~128KB - and this is without the complete C runtime library, which is in a dynamic library. The assembler needs lots of additional memory for symbols, listing and code, so I do severely doubt that it is useful when compiled for a 6502 platform. The same is probably true for ACME. The SuperCPU provides up to 16 MB of RAM to the CPU. CC65/CA65 even a SuperCPU with 4 MB of RAM would be extremely useful to me. I imagine the 256 limit for local variables would be a non-issue for the 16-bit 65816, right? Maybe this just goes back to that whole 65816 target issue that I don't think I've seen a definitive response about. Did you find any other interesting bugs when you tried to compile CA65 with CC65? Payton Byrd <http://www.paytonbyrd.com> <http://blogs.ittoolbox.com/visualbasic/dotnet/> --------------------------------- Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Mon Feb 20 23:03:14 2006
This archive was generated by hypermail 2.1.8 : 2006-02-20 23:03:18 CET