Shop OBEX P1 Docs P2 Docs Learn Events
propgcc-map-sizes.pl is hanging — Parallax Forums

propgcc-map-sizes.pl is hanging

DavidZemonDavidZemon Posts: 2,973
edited 2014-02-21 10:14 in Propeller 1
I seem to have done something wrong.

The elf file was compiled with:
Building target: SD_Demo.elf
Invoking: PropGCC Linker
/var/www/vhosts/david.zemon.name/SimpleIDE-0-9-45/parallax/bin/propeller-elf-gcc -mcmm -Xlinker -Map=main.rawmap -L'/var/www/vhosts/david.zemon.name/SimpleIDE-0-9-45/parallax/propeller-elf/lib/cmm' -L'/var/www/vhosts/david.zemon.name/httpdocs/professional/PropWare/cmm' -L'/var/www/vhosts/david.zemon.name/httpdocs/professional/PropWare/simple/cmm' -o SD_Demo.elf SD_Demo.o -lPropWare_cmm -lSimple_cmm -ltiny
Finished building target: SD_Demo.elf

I then tried to see the nice map summary with the following line:
propeller-elf-c++filt --strip-underscore < main.rawmap | perl propgcc-map-sizes.pl

and it starts outputting the contents but hangs:
dzweb@zemon1204:~/httpdocs/professional/PropWare/Examples/SD/Debug$ propeller-elf-c++filt --strip-underscore < main.rawmap | perl ~/bin/propgcc-map-sizes.pl
Archive member included because of file (symbol)

libPropWare_cmm.a(sd.o)
                              SD_Demo.o (SD::shell(SD::File*))
libPropWare_cmm.a(spi.o)
                              libPropWare_cmm.a(sd.o) (_spi_wait)
libPropWare_cmm.a(spi_as.o)
                              libPropWare_cmm.a(spi.o) (__SPIStartCog)
libPropWare_cmm.a(PropWare.o)
                              libPropWare_cmm.a(spi.o) (_propware_count_bits)
libSimple_cmm.a(gets.o)
                              libPropWare_cmm.a(sd.o) (_gets)
libtiny.a(putchar.o)
                              libPropWare_cmm.a(sd.o) (_putchar)
libtiny.a(puts.o)
                              SD_Demo.o (_puts)
libtiny.a(printf.o)
                              SD_Demo.o (_printf)
libtiny.a(putstr.o)
                              libtiny.a(puts.o) (_putstr)
libtiny.a(safe_gets.o)
                              libSimple_cmm.a(gets.o) (_safe_gets)
libtiny.a(serialparam.o)
                              libtiny.a(putchar.o) (__txpin)
libtiny.a(setbitcycles.o)
                              libtiny.a(putchar.o) (__setBitCycles)
libtiny.a(getchar.o)
                              libtiny.a(safe_gets.o) (_getchar)
libtiny.a(doprintf.o)
                              libtiny.a(printf.o) (__doprintf)
libtiny.a(printf_putc.o)
                              libtiny.a(doprintf.o) (__printf_putc)
libtiny.a(printf_putn.o)
                              libtiny.a(doprintf.o) (__printf_putn)
libtiny.a(printf_putl.o)
                              libtiny.a(doprintf.o) (__printf_putl)
libtiny.a(printf_pad.o)
                              libtiny.a(printf_putn.o) (__printf_pad)
libtiny.a(printf_puts.o)
                              libtiny.a(printf_putn.o) (__printf_puts)
libc.a(thread.o)
                              _crt0.o (__TLS)
libc.a(memcpy.o)
                              libPropWare_cmm.a(sd.o) (_memcpy)
libc.a(memset.o)
                              _crtbegin.o (_memset)
libc.a(strcmp.o)
                              libPropWare_cmm.a(sd.o) (_strcmp)
libc.a(strlen.o)
                              libPropWare_cmm.a(sd.o) (_strlen)
Allocating common symbols
Common symbol                  size              file
_(float, int, long,...)(short)
                             4 0x4               libtiny.a(setbitcycles.o)
__bitcycles                  4 0x4               libtiny.a(setbitcycles.o)
__serialLock                 4 0x4               libtiny.a(setbitcycles.o)
              Total:        12 0xc
Memory Configuration
Name             Origin             Length             Attributes
hub              0x00000000         0x00008000
cog              0x00000000         0x000007c0
coguser          0x00000000         0x000007c0
ram              0x20000000         0x10000000
rom              0x30000000         0x10000000
drivers          0xc0000000         0x00100000
dummy            0xe0000000         0x00100000
*default*        0x00000000         0xffffffff
Linker script and memory map
LOAD (library) spinboot.o
LOAD (library) _crt0.o
LOAD (library) _crtbegin.o
LOAD SD_Demo.o
LOAD (library) libPropWare_cmm.a
LOAD (library) libSimple_cmm.a
LOAD (library) libtiny.a
LOAD (library) libgcc.a
START GROUP
LOAD (library) libc.a
LOAD (library) libgcc.a
END GROUP
LOAD (library) libgcc.a
LOAD (library) _crtend.o
Symbol          Address    Length   File-Length   Symbol-or-file
^C
dzweb@zemon1204:~/httpdocs/professional/PropWare/Examples/SD/Debug$

Comments

  • jazzedjazzed Posts: 11,803
    edited 2014-02-21 10:14
    Will it work without the perl script? If so, the original author may fix the script or you can volunteer.

    We don't burden Learn customers with having to install Perl, and I do not feel obligated to maintain the script.
Sign In or Register to comment.