I have a compiled C++ object file. And that object file contains a huge list of static constant values (as a matter of fact that .o file contains only static values). Is there any way I can read those static values using php? I can not copy those values into php and need to read them directly.
Thanks, to anyone for their response.
Dump out the contents of the .o using
nmorobjdumpand manually parse using regexes into a php header file. This has the disadvantage that it’s not “live” so if the .o is rebuilt you will have to synch up manually, but it definitely sounds like you need a one-time “quick and dirty” method.