From: David Lloyd (dmlloyd_at_atari-central.com)
Date: 2000-06-23 18:03:47
On Fri, 23 Jun 2000, Ullrich von Bassewitz wrote: > On Fri, Jun 23, 2000 at 09:36:35AM -0500, David Lloyd wrote: > > > Where can I find the format for the object files generated by ca65? I > > specifically want to be able to calculate the number of bytes used by > > certain segments, *before* they are relocated and linked. > > > > Is this even possible? Thanks... > > It would be possible using the source as documentation. However, I > would suggest, not to use the object files directly. The format is > quite flexible and has changed several times (usually it was extended > to incorporate new features like debug info)...If you access the > object files directly, you will have to change your code each time, > the format changes....why not use a special linker config that dumps > the output into the null device, and get the numbers from the map > file? Hmmm, well, the idea is I'm generating a ROM image, and the user of the software would receive the source, not the image. They would then be able to choose what capabilities they want included in the ROM image. The problem is, to include all the capabilities would make a ROM image larger than the target ROM device! So the idea is to let the user pick and choose, and at the same time tell them how much space each option uses and how much is remaining. > I have also thought about an object file dump utility as part of the > compiler suite, but it is not yet written and I cannot tell if it ever > will. That is an interesting idea... - D ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:36 CET