MAP Files

Other misc things
Post Reply
anorian
New member
Posts: 2
Joined: Sun Jun 09, 2019 1:56 pm

MAP Files

Post by anorian »

Hi Folks

Just a quick question: I've been migrating over my stuff from vanilla sdcc over the past days. Z88DK is just awesome! One thing I somewhat miss are the truly wonderful .map files the sdcc linker can produce though. Is there any way to generate something similar with z88dk? I know the (huge and somewhat, uhm, unwieldy ;) ) map files you get with -m but something like this would be wonderful.

Code: Select all

ASxxxx Linker V03.00 + NoICE + sdld,  page 2.
Hexadecimal  [32-Bits]

Area                                    Addr        Size        Decimal Bytes (Attributes)
--------------------------------        ----        ----        ------- ----- ------------
_CODE                               00006200    00002137 =        8503. bytes (REL,CON)

      Value  Global                              Global Defined In Module
      -----  --------------------------------   ------------------------
     00006200  _main                              ctest
     000062B2  _putchar                           l2_text
     000063E0  _pm_Init                           pmem
     00006478  _pm_AllocPage                      pmem
     00006510  _pm_MapPage                        pmem
     0000657E  _pm_MapTempPage                    pmem
     000065EC  _pm_ReleaseTempPage                pmem
     00006762  _GetMapTile                        tilemap
     000067EF  _ShowPages                         tilemap
     00006850  _CopyColumn                        tilemap
     00006A3A  _UpdateDisplayWindow               tilemap
     00006BD1  _BlitColumnBanked                  tilemap
     0000727A  _tm_Scroll2                        tilemap
     00007533  _LoadTileMap                       tilemap
     000076A6  _tm_Init                           tilemap
User avatar
dom
Well known member
Posts: 1195
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

Welcome. What platform(s) are you targeting?

There's no output that looks like that unfortunately. However, map files do contain all the needed information and are machine parsable so you should find it easy to generate a transforming script.
anorian
New member
Posts: 2
Joined: Sun Jun 09, 2019 1:56 pm

Post by anorian »

dom wrote:Welcome. What platform(s) are you targeting?

There's no output that looks like that unfortunately. However, map files do contain all the needed information and are machine parsable so you should find it easy to generate a transforming script.
Hi! platform is ZX Next. And yeah, all the info is in the z88dk mapfiles too, and tons and tons more ;) I I was just being lazy and hoping something already existed somehow (just a simple quick overview with only the symbols your own code defines, grouped by section, with entry points and a summary of section locations and sizes. Nothing really vital but sooooo handy as a reference ;) )

Thanks
Gerhard
Post Reply