Philipp Klaus Krause
Philipp Klaus Krause
This issue might be related to a known bug (https://sourceforge.net/p/sdcc/bugs/2733/), but I'm not sure, so I'd recommend filing a new bug report at https://sourceforge.net/p/sdcc/bugs/. However, since this is not a...
This is probably one of these upstream bugs: https://sourceforge.net/p/sdcc/bugs/2733/ https://sourceforge.net/p/sdcc/bugs/2877/
I guess in the long term, ELF/DWARF is the future. The hc08, s08 and stm8 backends of SDCC already support ELF output with DWARF debug information.
ELF support for Z80 has been merged into GNU binutils a year ago: https://sourceware.org/bugzilla/show_bug.cgi?id=25224 So we now only need to ELF/DWARF for z80 in SDCC. Shouldn't be hard: Just do...
Though I wonder why that uses a --dwarf option. Other SDCC ports just automatically emit DWARF when --out-fmt-elf is combined with --debug.
> This has been a bit of a long-standing annoyance with sdcc for a while. Philip doesn't seem to be taggable so maybe the only way to address it is...
If there is demand for it, SDCC could add support for DWARF for z80 and related backends. SDCC already supports DWARF for hc08, s08 and stm8, it shouldn't be hard...
Here is a patch that enables ELF output for z80 and related in SDCC: [z80-elf.patch.gz](https://github.com/z88dk/z88dk/files/7113737/z80-elf.patch.gz) I hasn't been tested much: the sdldz80 linker doesn't support the -f option, so linking...
I just did some testing with current SDCC 3.7.2 #10539; there is indeed a problem when using designated initializers with anonymous unions; it seems it results in an error message,...
For reference, the main SDCC feature request for ZX Next support is: https://sourceforge.net/p/sdcc/feature-requests/573/