flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > fEPU - fasm Emulated Processor Unit

Author
Thread Post new topic Reply to topic
narada



Joined: 15 Feb 2008
Posts: 77
Location: Ukraine, Dnepropetrovsk
narada
IDEA to make byte-code machine...

(THIS idea is for portable coding, like JAVA, but not for user-space programs - only for unified o.systems for VM... [hm... english so bad lanhuage... more useful is asm Smile) ])

becouse more&more technologies for hw-emulation (such AMD-V...)... so all Systems may be written on the unified byte-code. Then, ARM/MIPS/x86 may start only micro-VM...

Sorry for my english, i beleve you understand me... )))[/b]

_________________
http://www.omegicus.com
Post 01 Feb 2009, 22:54
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17658
Location: In your JS exploiting you and your system
revolution
Are you currently coding this or are you suggesting someone else code this? Do you have some test code to post?

Which OS has been written in byte code? Will this project also require writing the OS along with the emulator?

What is the "instruction set" of the byte code emulator? Has this been defined?
Post 01 Feb 2009, 23:36
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
about an emulated processor, fool concept is able to do it because it can be without any node, or only nodes like jne, jge, etc etc...

for example:
Code:
00030304300234
44324344300030
23424000043200
    

these random numbers can become a code if you build a structure over.
like a big set of LUTs
first byte is the instruction (1/256)
second byte can be an operand or anything else
etc etc
encoding on 35 bytes is possible too.
after, you build a set of macros just to write easyly the code.
Code:
macro if op1,op2,op3,op4
{
}

if a=b  that

that:
    

but for a new language edition it is better to build a dedicated editor parser, compiler oriented for the new language.
Post 02 Feb 2009, 00:11
View user's profile Send private message Visit poster's website Reply with quote
narada



Joined: 15 Feb 2008
Posts: 77
Location: Ukraine, Dnepropetrovsk
narada
2revolution: yes, I have some code, but it is very-very "alpha" for now... (first of all I want to finish os kernel)

An idea becouse it's a big problem to compile OS's for 10 or more platforms (as Linux or UX)...

I posted this idea to know - did this problem actual for now?
Post 02 Feb 2009, 10:59
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17658
Location: In your JS exploiting you and your system
revolution
I've never seen another virtual OS before. Java would be the closest I've seen for a platform independent system but that is not an OS.

FWIW: I don't see how this will save you any coding time over the standard C OSes. You'll still need the low level stuff in CPU specific code.


Last edited by revolution on 02 Feb 2009, 16:36; edited 1 time in total
Post 02 Feb 2009, 11:54
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
I don't really see the point, to be honest.

First of all, we already have java and dotnet. While those aren't perfect, it's still going to take you quite a while to reach their level of performance - and you have to spend time writing standard library stuff as well. And then you have to spend time porting the VM to various systems - which is going to take a while even if you don't want to do it as a full OS but "just" as a usermode application.

And when you're done with all this, you have a system that performs worse than native code and only lets you use a subset of CPU features.
Post 02 Feb 2009, 16:25
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3035
Location: vpcmipstrm
bitRAKE
Might want to look at the L4/x86 micro kernel - it would be ideal to build a VM on top of, imho.
Post 02 Feb 2009, 16:51
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.