[ros-kernel] GCC Optimizaitons on Speed-Critical Code

James Marjie jidatlah at sandyvalley.net
Sun Jul 18 03:40:28 CEST 2004


Filip Navara wrote:

> Alex Ionescu wrote:
>
>> Hi,
>>
>> I've noticed that we don't seem to use the slightest GCC optimization 
>> flags.
>> I know this would slow down the build if used everywhere, but I 
>> believe that
>> some parts of the code would greatly benefit from it, such as Win32K or
>> Syncronization/Locking code in ntoskrnl. There are probably other places
>> too.
>> What do all think? Would this be bad for any reason?
>>  
>>
> I'm myself building my Win32k optimized and the speed improvement is 
> noticable. The problem is that our HAL doesn't work when compiled with 
> optimalization and if the whole ReactOS is build with "-O2 
> -Wno-strict-aliasing" it feels a lot slower because of some component 
> (maybe Freetype?). We would need to solve these issues first. Also it 
> should be an option, because it's easier to debug unoptimized binaries.
>
> Regards,
> Filip
> _______________________________________________
> Ros-kernel mailing list
> Ros-kernel at reactos.com
> http://reactos.com/mailman/listinfo/ros-kernel
>
>
If I remember right if you enable debugging with -ggdb(add level here) 
and optimizations with -O2. It can make some errors more easily locatable.

James Marjie


More information about the Ros-kernel mailing list