Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > openwatcom.users.c_cpp > #3484

Re: Dead code elimination

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!www.openwatcom.org!not-for-mail
From Paul S. Person <psperson@ix.netscom.com.invalid>
Newsgroups openwatcom.users.c_cpp
Subject Re: Dead code elimination
Date Fri, 10 Mar 2017 09:53:32 -0800
Organization OpenWatcom
Lines 24
Message-ID <7tp5cc9570vdp08io08fc1ase71m565d17@4ax.com> (permalink)
References <o9vang$vp9$1@www.openwatcom.org>
NNTP-Posting-Host h-67-100-125-12.sttn.wa.dynamic.globalcapacity.com
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Trace www.openwatcom.org 1489193489 363 67.100.125.12 (11 Mar 2017 00:51:29 GMT)
X-Complaints-To news@www.openwatcom.org
NNTP-Posting-Date Sat, 11 Mar 2017 00:51:29 +0000 (UTC)
User-Agent ForteAgent/8.00.32.1272
Xref csiph.com openwatcom.users.c_cpp:3484

Show key headers only | View raw


On Fri, 10 Mar 2017 10:54:43 -0500, "Byron Blue"
<byronblue@hotmail.com> wrote:

>We've recently experienced a issues with our software in the field: Integer 
>division by zero. When I check the memory map it seems to point to a 
>function in clib3r.lib(abort.c) called terminate. This area is listed in the 
>.map file as an unreferenced symbol (not used in our code). Unknown to me 
>why this would occur but a few screenshots from different customers point to 
>the same area.
>Should I be checking the box in the Linker Switches to Eliminate dead code 
>[op el]? Is it possible this unused function is causing an issue?

Unless you have already done so, you need to use the debugger to find
out where that function is called from. 

Since you will probably find yourself looking at assembly with no
debugging info, you will need to back up until you reach your own
code.

And then see if, by any chance, you actually /are/ dividing by zero.
-- 
"Nature must be explained in 
her own terms through 
the experience of our senses."

Back to openwatcom.users.c_cpp | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Dead code elimination "Byron Blue" <byronblue@hotmail.com> - 2017-03-10 10:54 -0500
  Re: Dead code elimination Paul S. Person <psperson@ix.netscom.com.invalid> - 2017-03-10 09:53 -0800

csiph-web