Search found 89 matches
- Sat Jan 31, 2026 7:37 am
- Forum: Programming
- Topic: Early draft of DWARF standard
- Replies: 7
- Views: 1319
Re: Early draft of DWARF standard
I will further mention that I have an implementation which gives rich debugging information for C programs. We're going to be releasing this over the next few months, and it should provide a lot more visibility into 6502 development than what most people are used to.
- Sat Jan 31, 2026 7:35 am
- Forum: Programming
- Topic: Early draft of DWARF standard
- Replies: 7
- Views: 1319
Re: Early draft of DWARF standard
Would not it be better to split families to two subsets by range - defining format in future proof way? As it is currently defined, any tool written now has no way of supporting future families without recompilation.
I think that's a tautology. If you don't know the meaning of a future DWARF ...
I think that's a tautology. If you don't know the meaning of a future DWARF ...
- Sat Jan 31, 2026 7:29 am
- Forum: Programming
- Topic: Early draft of DWARF standard
- Replies: 7
- Views: 1319
Re: Early draft of DWARF standard
Quote:
There is no such a thing as a “MOS 65816”.
That should say “WDC 65C816” so it will correctly show up in search engines.
- Mon Oct 20, 2025 8:53 am
- Forum: Programming
- Topic: 16-bit/32-bit 65C816 random number generator
- Replies: 37
- Views: 3070
Re: 16-bit/32-bit 65C816 random number generator
This is fairly well-worn territory in computer science and mathematics, and I do not recommend reinventing the wheel.
https://en.wikipedia.org/wiki/Linear_congruential_generator
https://en.wikipedia.org/wiki/Linear-feedback_shift_register
https://en.wikipedia.org/wiki/Blum_Blum_Shub
https://en ...
https://en.wikipedia.org/wiki/Linear_congruential_generator
https://en.wikipedia.org/wiki/Linear-feedback_shift_register
https://en.wikipedia.org/wiki/Blum_Blum_Shub
https://en ...
- Sun Oct 19, 2025 9:43 pm
- Forum: Programming
- Topic: Early draft of DWARF standard
- Replies: 7
- Views: 1319
Early draft of DWARF standard
Greetings all, it's Byrd from over at your friendly https://www.llvm-mos.org project. We've gotten our ELF specification more or less firmed up, at least to the point that the llvm-mos project is able to support a couple dozen targets with it. ELF, as you know, is an Executable and Linkable Format ...
Re: RISCY-V02
Seems like a very fun project!
One of the difficult things, in any retro-engineering effort, is making the decision of how historically accurate you would like to be in your work. Do you want physical hardware, or is emulation enough? Is it legal to use modern tools and technologies, or must all ...
One of the difficult things, in any retro-engineering effort, is making the decision of how historically accurate you would like to be in your work. Do you want physical hardware, or is emulation enough? Is it legal to use modern tools and technologies, or must all ...
- Mon May 20, 2024 6:44 am
- Forum: Programming
- Topic: No love for FORTRAN?
- Replies: 75
- Views: 24508
Re: No love for FORTRAN?
Since we're on the topic: we managed to port LLVM to the 65xx series of microprocessors, and LLVM has a fairly new flang compiler front-end built in nowadays. I imagine it would be an incremental amount of work to get the flang front-end working with our existing llvm-mos backend. https://www.llvm ...
- Wed Mar 06, 2024 11:31 pm
- Forum: Programming
- Topic: RFC: Assembler syntax and ergonomics for the 65816
- Replies: 0
- Views: 28643
RFC: Assembler syntax and ergonomics for the 65816
Dear 65xx community:
We are in the early phases of implementing 65816 support as part of the https://www.llvm-mos.org project, and we need your opinons.
For those who aren't familiar with what LLVM-MOS is - LLVM-MOS is a fork of the LLVM toolchain (which includes a compiler, assembler, linker, and ...
We are in the early phases of implementing 65816 support as part of the https://www.llvm-mos.org project, and we need your opinons.
For those who aren't familiar with what LLVM-MOS is - LLVM-MOS is a fork of the LLVM toolchain (which includes a compiler, assembler, linker, and ...
- Wed Jan 24, 2024 4:29 am
- Forum: Programming
- Topic: SDCC for 6502
- Replies: 45
- Views: 29181
Re: SDCC for 6502
Yuri wrote:
johnwbyrd wrote:
Wait, there's an LLVM back end that will spit out 6502 assembly? o_O
- Tue Jan 23, 2024 12:38 am
- Forum: Programming
- Topic: cc65 equivalent instructions?
- Replies: 7
- Views: 6547
Re: cc65 equivalent instructions?
I tried adding some compiler options (-Oi -Os --codesize 999 --static-locals), with this result
https://godbolt.org/z/sds77vzcT
where
char sum(char a, b) {
char z;
z=a+b;
return z;
}
is transformed to
.proc _sum: near
L0002:
jsr pushax
ldy #$00
lda (sp),y
clc
ldy #$02
adc (sp),y ...
https://godbolt.org/z/sds77vzcT
where
char sum(char a, b) {
char z;
z=a+b;
return z;
}
is transformed to
.proc _sum: near
L0002:
jsr pushax
ldy #$00
lda (sp),y
clc
ldy #$02
adc (sp),y ...
- Tue Jan 23, 2024 12:26 am
- Forum: Programming
- Topic: SDCC for 6502
- Replies: 45
- Views: 29181
Re: SDCC for 6502
Linux is a first-class host for llvm-mos, and it supports 65c02 natively.
Wow! (or Gosh! or somesuch) : it looks a bit frightening at first... As I haven't yet created the customization files for my setup in cc65 , I'll try and do a comparison between the two environments. The big + for cc65 is ...
Wow! (or Gosh! or somesuch) : it looks a bit frightening at first... As I haven't yet created the customization files for my setup in cc65 , I'll try and do a comparison between the two environments. The big + for cc65 is ...
- Mon Jan 22, 2024 12:47 am
- Forum: Programming
- Topic: SDCC for 6502
- Replies: 45
- Views: 29181
Re: SDCC for 6502
GlennSmith wrote:
Hi,
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machines(*).
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machines(*).
- Fri Sep 01, 2023 8:15 pm
- Forum: Programming
- Topic: Looking for floating point libraries
- Replies: 17
- Views: 16401
Re: Looking for floating point libraries
Here's a standards-compliant implementation. Only compiles on llvm-mos as far as I know.
https://github.com/rweather/berkeley-softfloat-3-6502
https://github.com/rweather/berkeley-softfloat-3-6502
- Mon Aug 28, 2023 5:46 pm
- Forum: Programming
- Topic: Linux now running on the 6502
- Replies: 9
- Views: 8730
Re: Linux now running on the 6502
Someone has set up a livestream of Linux booting in real time on an actual C64: https://www.youtube.com/watch?v=g-36d07DfgI
EDIT: he's giving up at 12 hours. It will require approximately a week to boot Linux.
EDIT: he's giving up at 12 hours. It will require approximately a week to boot Linux.
- Mon Aug 28, 2023 5:39 am
- Forum: General Discussions
- Topic: Can Linux running on 6502?
- Replies: 12
- Views: 20334
Re: Can Linux running on 6502?
Necro'ing a dead thread just to demonstrate how common wisdom can be wrong. "But does it run Linux?" can now be finally and affirmatively answered for the 6502, running for example on the Commodore C64. It runs extremely slowly and it needs a RAM Expansion Unit (REU), as there is no chance to fit it ...