[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Solaris (#479)

Tobias Pape Das.Linux at gmx.de
Mon Apr 6 04:54:10 UTC 2020

Hi Subbu

> On 06.04.2020, at 06:04, K K Subbu <kksubbu.ml at gmail.com> wrote:
> On 05/04/20 6:14 PM, stes wrote:
>> build.linux32x86/squeak.cog.spur/build
> Production builds should be using -O and not "-g -Ox" option.

Why? Really.
It rather depends on the compiler, no?
With gcc and clang, -g+-O is actually a good idea, especially if you use "external" debug symbols like dwarf directories...

Best regards

> I don't know why the -g flag was turned on for production builds. It is probably a left over from an experiment.
> On Solaris, you could try using -O in place of -O2 and let the compiler choose the best optimization level. The level should be overridden only when the default level triggers a defect in the compiler.
> Eliot, I just discovered that the 5.x releases were compiled this way. Is this an oversight or a deliberate choice?
> HTH .. Subbu

More information about the Vm-dev mailing list