[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] bytecode

From: Shawn Rutledge
Subject: Re: [Tinycc-devel] bytecode
Date: Tue, 11 Oct 2005 11:04:41 -0700

This sounds pretty cool.  Is it going to be released?

On 10/11/05, Nick Kelsey <address@hidden> wrote:
> I looked into this for one of our applications - TCC is reasonably good
> for generating VM code but a simple VM interpreter won't be fast to execute.
> Instead I have been working on a TCC target that generates architecture,
> position and size independent code (with a fixed register/memory model)
> that can be converted into native instructions by the target processor.
> For a 32-bit processor the byte-codes generally translate to a single
> instruction or two for a literal.
> The targets we use are all embedded processors, often with less than 64k
> of RAM - with this approach the bytecode isn't stored, it gets
> translated on the fly as it is downloaded. My main test target is a
> Ubicom ip3k and the translator uses less than 4k of code space... less
> space than a VM would :-)
> The translator is that it is written in c-code but with an additional
> custom pre-processor that translates target specific assembler into
> binary constants so the author doesn't need to know or enter any binary
> numbers.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]