develooper Front page | perl.perl6.internals | Postings from December 2001


Thread Next
Alex Gough
December 19, 2001 15:38
Message ID:
We're clearly doing this wrong, is it really worth calling
setline every time we *run* the line in question, surely this is
better supported through some sort of bytecode position -> line number
mapping which is created at compile time, essentially a part of the
bytecode format, rather than an opcode? (imagine if you will:

my int $i = 0;
 until $i > 10000;
print "done\n";

currently would need to be:

	setline	1
	set	I0, 0
BAR:	setline	2
	inc	I0
	setline	3
	gt	I0, 10000, FOO
	branch	BAR
FOO:	setline	4
	print	"done\n"



Alex Gough
   It's is not, it isn't ain't, and it's it's, not its, if you mean it
   is. If you don't, it's its. Then too, it's hers. It isn't her's. It
   isn't our's either. It's ours, and likewise yours and theirs.
                -- Oxford University Press, Edpress News

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About