Recent

Author Topic: [SOLVED] Is there an "nm" utility for reading ppu files?  (Read 423 times)

del

  • Sr. Member
  • ****
  • Posts: 258
[SOLVED] Is there an "nm" utility for reading ppu files?
« on: February 01, 2023, 08:03:49 pm »
Quote
nm (name mangling) is a Unix command used to dump the symbol table and their attributes from a binary executable file (including libraries, compiled object modules, shared-object files, and standalone executables).

Obviously I'm not interested in mangling anything. I just want to see which exposed functions are rolled into a ppu file. I'm using fpc in Makefiles and I just want to get more savvy about what's going on.
« Last Edit: February 01, 2023, 08:58:37 pm by del »

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: Is there an "nm" utility for reading ppu files?
« Reply #1 on: February 01, 2023, 08:10:17 pm »
regards
Andreas

del

  • Sr. Member
  • ****
  • Posts: 258
Re: Is there an "nm" utility for reading ppu files?
« Reply #2 on: February 01, 2023, 08:24:55 pm »
This is the best community. You don't wait long for answers. So this came out of bgranoguibitmap.ppu and I'm assuming that all these "uses" units have already been "used" in the making of the ppu file and I don't need to worry about them:

Quote
Interface section
------------------
Module Name: BGRANoGUIBitmap

Source file 1 : bgranoguibitmap.pas 2022/11/11 21:41:12
Uses unit: System (Crc: C9D9E0D9, IntfcCrc: 531A4B0E, IndCrc: 4EF193DD)
Uses unit: objpas (Crc: 8ADEDA2C, IntfcCrc: 2E3EFC00, IndCrc: A6391521)
Uses unit: sysutils (Crc: 6447DD8B, IntfcCrc: 65AFDC0D, IndCrc: F1F2667D)
Uses unit: BGRAClasses (Crc: 0478DC0B, IntfcCrc: 3F610C4E, IndCrc: 70F10F09)
Uses unit: BGRAGraphics (Crc: 548A06FC, IntfcCrc: DF7463EB, IndCrc: 149B8C31)
Uses unit: BGRABitmapTypes (Crc: E94F351E, IntfcCrc: 23777F07, IndCrc: 5AB17C8D)
Uses unit: BGRADefaultBitmap (Crc: C31A2A45, IntfcCrc: B36F8318, IndCrc: 9A388423)
Uses unit: BGRAFreeType (Crc: 63C3C8E2, IntfcCrc: 6D352862, IndCrc: BBEDB4C9)
Uses unit: EasyLazFreeType (Crc: 010D0CA1, IntfcCrc: 59AC6654, IndCrc: A6D32F5C)
Uses unit: LazFreeTypeFontCollection (Crc: 8D334377, IntfcCrc: 03304B14, IndCrc: A39B4257)
Uses unit: BGRACanvas (Crc: 5F6DEAC7, IntfcCrc: 33F0C239, IndCrc: D81BE495)

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: Is there an "nm" utility for reading ppu files?
« Reply #3 on: February 01, 2023, 08:36:11 pm »
There are more (hidden) gems in the fpc directory :-)
regards
Andreas

del

  • Sr. Member
  • ****
  • Posts: 258
Re: Is there an "nm" utility for reading ppu files?
« Reply #4 on: February 01, 2023, 08:37:29 pm »
Thanks for the tip !!   :D

 

TinyPortal © 2005-2018