sim6502
llvm-mos
sim6502 | llvm-mos | |
---|---|---|
1 | 14 | |
2 | 445 | |
- | 2.2% | |
0.0 | 10.0 | |
about 2 years ago | 2 months ago | |
Rust | LLVM | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sim6502
-
Can you write for the Commodore 64 in Rust? Why yes, yes you can!
Take a look on https://github.com/mrk-its/sim6502 - my 6502 simulator with remote debugging support (lldb-compatible). llvm-mos is able to generate ELF binaries with full DWARF debug info - so full source level debugging is possible with existing vscode lldb extension https://github.com/vadimcn/vscode-lldb
llvm-mos
-
Recursion kills: The story behind CVE-2024-8176 in libexpat
> Suppose you have 100 functions that each need 100 bytes of scratch space. Statically allocating everything like you describe means you need 10KB of memory reserved. But suppose there is one main function, and the rest are helper functions, and the main function calls each helper function one at time and the helper functions don't call anything. With the static approach, you still need 10KB. With the stack-based approach, you only need 200 bytes (the stack space for the main function, and the stack space for the helper function it is currently calling).
This is not necessarily the case: if you statically analyze the call graph, you may be able to prove that two functions will never be live at the same time, and thus reuse memory regions for their local variables: https://github.com/llvm-mos/llvm-mos/blob/main/llvm/lib/Targ...
Of course, recursion, function pointers, and dynamic linking will defeat (or at least complicate) this scheme.
- LLVM-MOS 6502 Compiler Backend: Having a Blast in the Past
-
I'm sorry honey, it's just not working out. Our relationship worked when we were younger, but we're both older now and we've grown apart. This issue is to fully eliminate LLVM, Clang, and LLD libraries from the Zig project.
Too late: https://github.com/llvm-mos/llvm-mos
-
Explaining my fast 6502 code generator
I don’t think it’s in the official repo, but yes:
https://github.com/llvm-mos/llvm-mos
-
How can I compile rust for 16bit x86 (Intel 8086)?
You could look at LLVM-MOS, the port of LLVM to the 6502. It might give you some ideas around the problems to solve https://llvm-mos.org/wiki/Welcome https://github.com/llvm-mos/llvm-mos
-
The Rise of Rust, the ‘Viral’ Secure Programming Language That’s Taking Over Tech
The MEGA 65 doesn't appear to have shipped yet. The best data I could find is the MEGA 65 is based on a "GS4510". The "GS4510" is compatible with a "4502", which in turn is compatible with the 65CE02. The 65CE02 uses a different manufacturing process but the same ISA as the 6502, which is supported by rust-mos and lvm-mos](https://github.com/llvm-mos/llvm-mos).
-
A Graphical OS for the Atari 8-bit
It really is a cool project. https://github.com/cc65/cc65
It provides some template configuration files describing different memory layouts. And provides common libraries for input/output.
There's also a LLVM fork for MOS: https://github.com/llvm-mos/llvm-mos
They've got some interesting hacks with ZeroPage memory and register allocation: https://llvm-mos.org/wiki/Code_generation_overview
Interesting if you geek out on that kind of research.
-
Can you write for the Commodore 64 in Rust? Why yes, yes you can!
Using llvm-mos, rust-mos, a lot of time compiling compilers and support from Mariusz (the rust-mos author), I was finally able to program like it was 1982...
-
rust gcc backend was officially accepted into the compiler
SNES: 65C816 derivative, may eventually be supported by https://github.com/llvm-mos/llvm-mos
- A project to port LLVM to the MOS 6502
What are some alternatives?
rust-mos - Empowering everyone to build reliable and efficient software.
cc65 - cc65 - a freeware C compiler for 6502 based systems
CodeLLDB - A native debugger extension for VSCode based on LLDB
compiler-team - A home for compiler team planning documents, meeting minutes, and other such things.
rv51 - A RISC-V emulator for the 8051 (MCS-51) microcontroller.