I look for instance for variables with "amplitude" in the name.
~/opt/m68k-amigaos_14Dec18/bin/m68k-amigaos-nm sam -S --size-sort | grep amplitude
That shows
000000c8 00000011 D _amplitudeRescale <-- correct
0000214c 00000120 D _amplitude2 <-- wrong, should be 0000000000000100
0000204c 00000220 D _amplitude3 <-- wrong, should be 0000000000000100
00001f48 00000324 D _amplitude1 <-- wrong, should be 0000000000000100
amplitude-arrays are defined as "unsigned char amplitude1[256];"
nm from linux shows that correctly.
When I look into the m68000-mapfile the size of amplitude1,2,3 is correctly displayed.
Some sizes shown by nm are not correct.
I look for instance for variables with "amplitude" in the name. ~/opt/m68k-amigaos_14Dec18/bin/m68k-amigaos-nm sam -S --size-sort | grep amplitude
That shows 000000c8 00000011 D _amplitudeRescale <-- correct 0000214c 00000120 D _amplitude2 <-- wrong, should be 0000000000000100 0000204c 00000220 D _amplitude3 <-- wrong, should be 0000000000000100 00001f48 00000324 D _amplitude1 <-- wrong, should be 0000000000000100
amplitude-arrays are defined as "unsigned char amplitude1[256];"
nm from linux shows that correctly. When I look into the m68000-mapfile the size of amplitude1,2,3 is correctly displayed.
To reproduce please try https://github.com/githubaf/SAM