How to get the map file by gcc
Posted: Thu Jan 05, 2012 1:45 pm
I want to watch the address information of variable or function.
Sega Megadrive/Genesis development
https://gendev.spritesmind.net/forum/
Code: Select all
-Wl,-Map=output.map
Code: Select all
-Map=output.map
Code: Select all
rom.out: $(OBJ)
$(CC) -T D:/apps/GenDev/bin/md.ld -nostdlib $(LINKOBJ) D:/apps/GenDev/bin/libgcc.a -o rom.out
Code: Select all
rom.out: $(OBJ)
$(CC) -Wl,-Map=output.map -T D:/apps/GenDev/bin/md.ld -nostdlib $(LINKOBJ) D:/apps/GenDev/bin/libgcc.a -o rom.out