14 April 2012, 10:39 | #1 |
Registered User
Join Date: Jul 2009
Location: Lala Land
Posts: 534
|
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? |
14 April 2012, 22:17 | #2 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
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. |
|
15 April 2012, 02:57 | #3 | |
Registered User
Join Date: Jul 2009
Location: Lala Land
Posts: 534
|
Quote:
|
|
15 April 2012, 05:52 | #4 |
Registered User
Join Date: Jul 2009
Location: Lala Land
Posts: 534
|
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.
Last edited by copse; 15 April 2012 at 07:17. Reason: Further work on Barfly format. |
17 April 2012, 13:40 | #5 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,509
|
Quote:
Usually you will specify -g together with the -hunkdebug option to make vbcc output SAS/C-style LINE debug information instead. |
|
18 April 2012, 04:26 | #6 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
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. |
|
20 April 2012, 16:41 | #7 | |||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,509
|
Quote:
If somebody doesn't like that then it is easy for him to add the options to the aos68k config file. Quote:
Quote:
|
|||
21 April 2012, 20:08 | #8 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
Last edited by matthey; 21 April 2012 at 20:17. |
|
23 April 2012, 16:30 | #9 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,509
|
Quote:
Quote:
|
||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP! HD contents to CD-ROM | trilobitepix | request.Other | 1 | 17 May 2009 22:29 |
List of contents | skateblind | HOL suggestions and feedback | 0 | 10 May 2009 14:43 |
|
|