[LLVMdev] MOS6502 target

Edwin Amsler edwinguy at gmail.com
Fri Jul 11 06:18:57 PDT 2014


Oh yeah, I'm not expecting to port some major app. I have pretty intimate knowledge of what my c64 can and can't do. It barely has a kernel (pretty much just in-memory routines for disk, screen, and tape access).

This isn't a practical project (good C compilers exist already), this is an excuse to play with LLVM.

> On Jul 9, 2014, at 4:25 PM, Krzysztof Parzyszek <kparzysz at codeaurora.org> wrote:
> 
>> On 7/2/2014 8:23 PM, Edwin Amsler wrote:
>> 
>> Really, if I can get an assembler out of `llc`, that'll be success enough for me. Clang would be better, but I think that might be crazy talk.
>> 
>> I've been doing lots of research so far, but from the experts, how feasible does this sound?
> 
> The set of programs that you will be able to compile will be severly limited. There is no OS to speak of, so the only mode you will be able to use is the "base metal".  This means no file I/O.
> 
> If you ever plan to run the output on a real hardware, add an option to reserve memory addresses for memory mapped registers.
> 
> There is a 16-bit derivative of 6502, maybe you could target that instead?
> 
> In any case, good luck.  Sounds really cool!
> 
> -Krzysztof
> 
> 
> -- 
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list