HUNK_DEBUG contents
Writing my own Amiga executable parser, one of the aspects which I find it difficult to locate information on is the structure of HUNK_DEBUG hunks.
I've added a breakdown of the SAS C line debug hunk structure to my wiki page. Does anyone know of documentation on other types of HUNK_DEBUG hunks? |
Quote:
"generate HCLN (HiSoft Compressed Line Numbers) debug hunks for this file. These provide the same information as LINE hunks but normally require only 2 bytes of extra information per line that generates code." Good luck finding specific information on it though. It's probably better to stick with SAS/C style LINE debug anyway as size isn't so much an issue anymore. Vbbc looks like it can output DWARF2 debugging information inside an Amiga hunk executable. I'm not sure what and how that is supported but the vbbc docs have information: http://sun.hasenbraten.de/vbcc/ The Dwarf2 format documentation is readily available elsewhere. How and what fits in an Amiga hunk executable is I don't know. |
Quote:
|
I don't know why, but I spent an hour or two this afternoon looking into some obscure debug hunks. It's not productive time spent, but it's added to the wiki page.
|
Quote:
Usually you will specify -g together with the -hunkdebug option to make vbcc output SAS/C-style LINE debug information instead. |
Quote:
I noticed that I needed "vc -g -hunkdebug MyProgram.c" in order to get hunk symbols. Why isn't the vbbc -hunkdebug option the default in vbcc:config/aos68k? GCC 2 and 3 (support the Amiga hunk format) don't need a switch for Amiga symbol hunks (included by default). I don't know what kind of debug hunks they can output though. Your new 68k optimizations in vasm have been working well. I found some compiled code with a simple peephole optimization that we somehow missed. Vasm could optimize: lea 0,An -> suba.l An,An The Natami fpga CPU project was split from the Natami project and is now called the Apollo. This was done to market to and support other customers better. I have been busy helping with that. I am working on some of the documentation and will probably contact you in the next few weeks about ISA changes and support. |
Quote:
If somebody doesn't like that then it is easy for him to add the options to the aos68k config file. ;) Quote:
Quote:
|
Quote:
Quote:
|
Quote:
Quote:
|
All times are GMT +2. The time now is 14:29. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.