[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03922] Re: mod_ruby

From: Shugo Maeda <shugo@...>
Date: 2000-07-11 04:58:14 UTC
List: ruby-talk #3922
Hi,

At Mon, 10 Jul 2000 20:43:21 -0700,
Steve Shreeve <shreeve@s2s.org> wrote:
> mod_ruby.c:690: warning: passing arg 2 of `write_client_block' discards
> `volatile' from pointer target type

Sorry, this `volatile' is a test code, and now fixed in the
latest cvs version.

> BUT, the *interesting* news is that when I ran this, I did *NOT* get any
> errors. Somehow the change from -O2 to -O0 fixed removed some problem that
> existed before... How can I find out more about solving this problem?

OK, please tell me your gcc version.
And can I see the assembly code?

$ gcc -fPIC -I/usr/local/lib/ruby/1.4/i686-linux \
            -I/usr/local/apache/include \
            -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI \
            -Dbool=char -DHAS_BOOL \
            -I/usr/local/include \
            -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite \
            -g -O2 -c mod_ruby.c -S -o mod_ruby.o2.s
$ gcc -fPIC -I/usr/local/lib/ruby/1.4/i686-linux \
            -I/usr/local/apache/include \
            -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI \
            -Dbool=char -DHAS_BOOL \
            -I/usr/local/include \
            -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite \
            -g -O0 -c mod_ruby.c -S -o mod_ruby.o0.s

# mod_ruby.o2.s and mod_ruby.o0.s is the assembly code.

Shugo




In This Thread

Prev Next