Calypsi-tool-chains icon indicating copy to clipboard operation
Calypsi-tool-chains copied to clipboard

support for the o65 output format

Open ProxyPlayerHD opened this issue 9 months ago • 2 comments

the o65 file format is basically a miniature version of ELF. it supports 2 segments (text and data) and full relocation. it was originally created to allow 6502 based OSes to load programs without having to compile/assemble them for any specific memory region, as they can easily be relocated at runtime. (unlike CP/M for the 8080 for example) that's also why they didn't just use ELF, because ELF is a lot more difficult to parse for an 8-bit system. later it also started getting used for other CPUs like the 65816, Z80, 8080, 80286, 6800 and compatibles, etc. it could also be used for the 68000.

so yea that's why i would like to see it being supported by the linker as an output format. it's actively being used (also meaning that then Calypsi C can be used to write applications for OSes like GeckOS, LUNIX, FUZIX, etc), and while it's more complex than raw binary or PGZ, it allows for full relocation without being as complex as ELF. so it's just a nice middle ground.

ProxyPlayerHD avatar May 05 '24 10:05 ProxyPlayerHD