"Leopold Toetsch" <[EMAIL PROTECTED]> wrote:
On Nov 14, 2005, at 0:02, Jonathan Worthington wrote:
Hi,
.hll_debug file "something.pl"
.hll_debug line 1
Just
#line 123
#line 789 "file.foo"
looks simpler and well known to me - the latter is already parsed.
But:-
1) Looks just like a comment.
2) What about other things, like columns? What if the compiler wants to
annotate any optimizations it made with some custom fields? At least one
person (Roger, IIRC) already has said they'd like to be able to do this. I
don't think the syntax you show there is flexible enough.
But actually making it work is more important for me.
I'm not really interested in writing this, then in a couple of months time
having compiler writers saying "ah, it doesn't do X and we need that" and
having to re-do it. Let's try and get it right first time so we can say
"this is done" and then I can move onto whatever's next on the to do list.
Either an integer or a string constant from the constants table
Storing debug-only things in the constant table could complicate a TODO
'pbc_strip(1)' utility but not a problem.
pbc_merge deals with such things already.
We already store PIR debug file names in the constants table, which was your
suggestion. Mine had them in the segment header. Admittedly as C strings,
though we coulda dump'd STRING's in there instead, which would still have
solved the GC issues I think. pbc_strip can be written in a way that deal
with this, anyway.
Jonathan