Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Config sets optimisation compilation flags (-O/-g)!

by BrowserUk (Patriarch)
on Jan 28, 2019 at 19:53 UTC ( #1229090=note: print w/replies, xml ) Need Help??


in reply to Re^2: Config sets optimisation compilation flags (-O/-g)!
in thread Config sets optimisation compilation flags (-O/-g)!

Config simply supplies the same options as was used to build the build of perl you are using; full stop.

If you want to override those options you must do so manually; and you must also consider the implications of your code having been built with different options to the build of perl with which it will be interacting at the binary level.

Eg. If you want to be able to debug your C code extensions, and turn off optimisations so that the binary code generated matches the source code, then when you run that code under the debugger, your extension's code will match up to its sources; but if you trace the code into the perl binary, its code will not match up to its sources, because it will have been optimised.

Whilst it will be possible to debug the extension that way, it would almost certainly be better to build a debug version (ie.no optimisations) of the perl binary, and use that to build and debug your extensions. In that case, your extension will inherit those debug build options by default and you won't need to modify them manually.

Once you extension is fully debugged, you can go back to the optimised build of perl, and your extension will be optimised also.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit
  • Comment on Re^3: Config sets optimisation compilation flags (-O/-g)!

Replies are listed 'Best First'.
Re^4: Config sets optimisation compilation flags (-O/-g)!
by bliako (Monsignor) on Jan 28, 2019 at 20:23 UTC

    OK that's clarified then. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1229090]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2022-01-19 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?