Problems annotating a symbols' size using gpasms .DEF

Dec 30, 2019 1 Replies

I had been trying to output some sort of addressname mapping for debugging. Using the Map file seemed promising initially. But when trying to dump memory locations, it became obvious that I needed the sizes, too. The pure MPASM syntax does not seem to allow annotating that information. gpasm looked superior in that respect. Their .DEF extension specifically.



BUT it seems to be moving the labels around the memmap when it shouldn't.



This is what I tried:



-----uart.asm--------- radix dec include p16f1705.inc include coff.inc



GLOBAL l_buf GLOBAL l_offs



LINEAR0 UDATA ;l_buf RES 256 .DEF l_buf,global,type=(DT_ARY


It seems the GP_ARR auxiliary symbol is not implemented A text search for GP_ARR shows it's only in the libgputils/gpcoff.h header.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required