[nem-en] Debug support

Kamil Skalski kamil.skalski at gmail.com
Wed Dec 20 17:54:39 CET 2006


This would be a major slowdown, because we translate all loops into
local functions, which are then automatically inlined by compiler. So
every 'foreach,for,while' would be changed into separate method, all
local variables used by them would need to be stored in closures, etc.
Also... as every loop would be treated as "skippable" function, you
would get strange behavior stepping over them - the debugger would
skip entire loop execution if you clicked "step over".

But in general I don't think there is something, which would make it impossible.

2006/12/20, vc <vc at rsdn.ru>:
> > Probably not :/ The code is inlined and there are cases where it
> > really *needs* to be inlined in order to work. Maybe there is someway
> > of marking a sequence of instruction as step-over-able, but I don't
> > think so.
>
> May be in debug mode instead inlining use -general-tail-call-opt?
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list