yarv-dev:252
From: MAEDA Atusi <maeda-yarv atusi.org>
Date: Thu, 14 Oct 2004 11:08:08 +0900
Subject: [yarv-dev:252] Re: Stack Caching
SASADA Koichi <ko1 atdot.net> writes: > > なお、機械語コードの断片部分は実行時に絶対に到達できないので、 最適化 > > してコンパイルするとこの部分は削除されていまうので、 うまく動かなくなっ > > てしまいます。 > > asm 文に volatile 付けるだけじゃ駄目なのー? だめみたい。ちょっとGCCのバージョンが古いけど、新しいのでも同じだと思 う。 GCC will not delete a volatile asm if it is reachable. (The instruction can still be deleted if GCC can prove that control-flow will never reach the location of the instruction.) (http://gcc.gnu.org/onlinedocs/gcc-3.4.2/gcc/Extended-Asm.html) ということらしい。で、データとして参照するだけでは「reachable」とはみ なされない、と。 前田敦司 -- ML: yarv-dev quickml.atdot.net 使い方: http://www.atdot.net/~ko1/quickml
242 2004-10-06 02:59 [shudo computer.org ] Stack Caching 243 2004-10-07 00:29 ┗[maeda-yarv atusi.org] 245 2004-10-09 00:23 ┗[ko1 atdot.net ] -> 252 2004-10-14 11:08 ┗[maeda-yarv atusi.org]