6502bench
6502bench copied to clipboard
Multifile support
I do believe we have talked about this via mail, and I can see aspects of how this would be difficult, but I would really like to see multifile support.
Today there is a hard link between a file and the disassembly, but my suggestion is that it would be possible to add several files to a project and that they would be seen as a combined virtual memory space. To simplify the topic a bit, I would be perfectly fine to have a requirement that the files couldn't be overlapping, to dodge the can of worms deriving from allowing overlap.
Think of the suggestion as an on-the-fly build of a larger file, only that it is built from several subfiles.
There are some separate but related things that fall into the "multi-file" bucket:
- Automatic sharing of common symbols. For example, Stellar 7 has a graphics engine component and a couple of things (game, demo) that load into the same area at different times. It's possible to share symbols with explicit imports or shared .sym65 files, but it's not very convenient.
- Constructing a "virtual image" from multiple binaries. You can do this now by concatenating the binaries together, but this will generate a single large source file, which will in turn assemble to a single large binary.
- Outputting raw binaries as part of source generation. We had a discussion a while back about splitting out large data-only sections into a binary file, as there's no real value in having a large source file with nothing but data statements in it. (Issue #144)
- Generating multiple source files, for large binaries with overlays (#115).
Point 3 is another discussion and that's a separate topic. Still very relevant.
I was thinking of 2, and the "virtual" would be building that binary on the fly.
I see the point in 1 and 4, but I have yet to dive into projects where it's relevant. I guess I excluded them from the request when I was ok with this being restricted to a collection of files that aren't overlapping.