LCC port

new topic     » topic index » view thread      » older message » newer message

-------Phoenix-Boundary-07081998-

You wrote on 2/14/02 12:37:43 PM:

>While we're on the subject, didnt you write 2X threaded code for
>LCC? Mind sharing what/how you did this?
>
>Euman
>euman at bellsouth.net

 I did and my submitted interpreter is threaded (unless I
mis-typed). This makes it much faster, but still 15-20%
slower than Watcom (Watcom can use register-passing
conventions).

Implementation involves a bit of assembly code to do the
threading ('jmp esi'), a subroutine that returns the code
address of its call, and a bunch of debugging.

In a number of places, a dummy instruction must be placed
!after! a 'jmp esi' instruction. Rob's Watcom code needed
them in some places, my LCC version needed them in
different places. There seems to be no way to know where
other than by tracing the crashes.

I'm willing to share my port with other LCC users subject
to verification of source licencing. Anybody know how
we do that?

Karl Bochert

-------Phoenix-Boundary-07081998---

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu