[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-core
Subject:    Re: [PATCH] 1.8.3 p1 segfault in array.c- bccwin32 - bcc5.5 (free) compiler bug
From:       "daz" <dooby () d10 ! karoo ! co ! uk>
Date:       2005-06-28 4:05:21
Message-ID: 01b301c57b96$8f850ee0$09976453 () vanna
[Download RAW message or body]


I discussed this on the Borland forum[*] and it was confirmed as an
optimizer bug.

I guess that Ocean and the bccwin team are wondering why they haven't
seen this problem.  The reason is ...

Command line option /v (lower case) embeds debugging information in
the object file __and__ arranges inline functions to be function calls.
The default for this option in bcc55 is ON -- therefore, the CLASS_OF
and TYPE (and other?) macros each result in function calls.

I don't need debugging info because there aren't any bugs in Ruby ;-)
As a bonus for setting /v- , all inline code is, actually, inline.

Like most people, I prefer slower code to segfaults, so I'll have to
revert to the default option, for now.  However, I think that this
option should be OFF for bccwin Ruby builds and that a workaround
should be chosen for the SEGV (many are available).

I'll let Ocean, or someone else, decide on that when they've noticed
the speed increase after removing their overheads.


daz
-- 
JARH (Nihon-style) ... not as simple as you might think.
http://qurl.net/h3 (babelfish)
http://qurl.net/h7 (excite jp)


[*] (not recommended reading)
http://groups.google.com/groups?threadm=42aa5aa9$1@newsgroups.borland.com





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic