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


Groups > comp.soft-sys.math.mathematica > #11208

Re: Using Workbench to debug Compile[] ??

From David Bailey <dave@removedbailey.co.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Using Workbench to debug Compile[] ??
Date 2012-08-05 01:50 +0000
Message-ID <jvkjge$5tm$1@smc.vnet.net> (permalink)
References <jvdffu$c5t$1@smc.vnet.net> <jvg1k4$rkl$1@smc.vnet.net> <jvis3r$2uf$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On 04/08/2012 11:04, Axel wrote:
> No, this is just a general question.
> I want to know if it is at all possible to debug a function that is returned by the Compile command with the Workbench. As I see it, this is NOT possible because I now have bytecode and not any more Mathematica source code.
> I just would like to confirm this.
>
> If you know any other way to debug compiled functions please let me know.
>
> Thanx
>    Axel
>

Well I haven't used compiled code explicitly much, but as I understand 
it, the results should be the same as non-compiled code, except perhaps 
for rounding errors.

Therefore, if I had code that worked in interpreted mode, but not in 
compiled mode, I would try to thin the code down to the smallest 
fragment that showed a problem, and then perhaps report it as a bug to 
Wolfram.

I would also test code before trying to compile it - so if you are 
talking about bugs that are there anyway, get them out before you use 
the compiler! To do this, you may need to scale the problem down a bit 
so that it can execute without the compiler in a reasonable amount of 
time. Usually this is fairly easy.

David Bailey
http://www.dbaileyconsultancy.co.uk

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Using Workbench to debug Compile[] ?? Axel <axel.kowald@gmail.com> - 2012-08-02 08:58 +0000
  Re: Using Workbench to debug Compile[] ?? David Bailey <dave@removedbailey.co.uk> - 2012-08-03 08:20 +0000
    Re: Using Workbench to debug Compile[] ?? Axel <axel.kowald@gmail.com> - 2012-08-04 10:04 +0000
      Re: Using Workbench to debug Compile[] ?? David Bailey <dave@removedbailey.co.uk> - 2012-08-05 01:50 +0000
    Re: Using Workbench to debug Compile[] ?? W Craig Carter <ccarter@MIT.EDU> - 2012-08-05 01:49 +0000

csiph-web