Compiled exe and proc/var names

Everything else that doesn't fall into one of the other PB categories.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Compiled exe and proc/var names

Post by PB »

To Fred or Freak: If I compile an exe that has a procedure
named "Unlock()" and a global variable named "unlocked",
can these be found in the final exe by a disassembler?

I'm worried that even if I can't see them with a hex editor,
they might show up when disassembled.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
idle
Always Here
Always Here
Posts: 6238
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Compiled exe and proc/var names

Post by idle »

you can confirm it yourself using podump or bindump on windows or nm on linux
they shouldn't show up in an exe, though if they were in a dll they could well be present
Windows 11, Manjaro, Raspberry Pi OS
Image
Fred
Administrator
Administrator
Posts: 18549
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Compiled exe and proc/var names

Post by Fred »

No, it's not stored in the final exe, unless you use the 'Runtime' keyword.
Post Reply