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

Hartmut Birr Hartmut.Birr at gmx.de
Sun Jul 18 13:05:07 CEST 2004

> -----Original Message-----
> From: ros-kernel-bounces at reactos.com 
> [mailto:ros-kernel-bounces at reactos.com] On Behalf Of Alex Ionescu
> Sent: Sunday, July 18, 2004 3:09 AM
> To: 'ReactOS Kernel List'
> Subject: RE: [ros-kernel] GCC Optimizaitons on Speed-Critical Code
> Hi,
> Just to add that it seems one of the reasons this could fail 
> is because we have ASM code in HAL that's not marked as 
> __volatile__, which makes gcc remove it by default.
> Best regards,
> Alex Ionescu

The missing __volatile__ isn't the problem. The real problem are
instructions which changes the stack layout like pushf and popf. 

- Hartmut

More information about the Ros-kernel mailing list