08-15-2004, 06:25 PM
Hello,
I was thinking about writing a bytecode script engine in qbasic for my fakeOS what I'm trying to write. But right now I'm trying to get some idea about what I'm going to do. Here's my idea:
Script language what will be compiled into byte code would be very asm like, with some exceptions/limitation and etc... The point of it would be that this code I could compile into call absolute ready code. So later when executing this all I would have to do is send it through call absolute. I think that this way it would be as fast as it can go.
The problem would be of course other specific commands(like in fake os calling for a window for example) can't be done in this asm. So my idea is that byte code would have blocks of code. If certain byte in block is 1 or 0 then send it either to call absolute or to internal interpreter.
What I want to know, that is this worth trying and spending effort on. What would be possible problems or so on.
Please, I'd be apprecieted.
I was thinking about writing a bytecode script engine in qbasic for my fakeOS what I'm trying to write. But right now I'm trying to get some idea about what I'm going to do. Here's my idea:
Script language what will be compiled into byte code would be very asm like, with some exceptions/limitation and etc... The point of it would be that this code I could compile into call absolute ready code. So later when executing this all I would have to do is send it through call absolute. I think that this way it would be as fast as it can go.
The problem would be of course other specific commands(like in fake os calling for a window for example) can't be done in this asm. So my idea is that byte code would have blocks of code. If certain byte in block is 1 or 0 then send it either to call absolute or to internal interpreter.
What I want to know, that is this worth trying and spending effort on. What would be possible problems or so on.
Please, I'd be apprecieted.