Board.KolibriOS.org

Official KolibriOS board
It is currently Thu Nov 14, 2019 6:57 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 16 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Machine code
PostPosted: Sat Mar 13, 2010 11:30 pm 
Offline

Joined: Mon Jan 18, 2010 12:49 am
Posts: 34
Would KolibriOS be more efficient if it was written in machine code instead of assembler?


Top
   
 Post subject: Re: Machine code
PostPosted: Sat Mar 13, 2010 11:38 pm 
You're wrong - Kolibri should be written in microcode embedded CPU.


Top
   
 Post subject: Re: Machine code
PostPosted: Sat Mar 13, 2010 11:48 pm 
Offline
Kernel Developer
User avatar

Joined: Fri Aug 14, 2009 1:46 am
Posts: 1351
Jake wrote:
Would KolibriOS be more efficient if it was written in machine code instead of assembler?

Any assembly language is actually a mnemonic presentation of CPU machine codes.
(Plus some extra features to simplify and accelerate the s/w development).

But your question is not absolutely absurd 8)
- apart of CPU, there exist less sophisticated programmable devices inside PC those require hell of programming of their own microcontrollers in bare machine code.
KolibriOS yet needs this work to be done to utilise 100% of the hardware resources, and to run even faster.


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 12:53 am 
Offline

Joined: Mon Jan 18, 2010 12:49 am
Posts: 34
Mario wrote:
You're wrong - Kolibri should be written in microcode embedded CPU.

Would Kolibri be more efficient if it is written in microcode, instead of machine code or assembler? Is there anything more basic than microcode?

art_zh wrote:
- apart of CPU, there exist less sophisticated programmable devices inside PC those require hell of programming of their own microcontrollers in bare machine code.
KolibriOS yet needs this work to be done to utilise 100% of the hardware resources, and to run even faster.

Are you talking about microcode here?


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 1:04 am 
Offline
Kernel Developer
User avatar

Joined: Fri Aug 14, 2009 1:46 am
Posts: 1351
We're probably talking in different terms.
Would you please tell us what microcode do you talk about and why it should be faster than the CPU code?


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 1:52 am 
Jake wrote:
Mario wrote:
You're wrong - Kolibri should be written in microcode embedded CPU.

Would Kolibri be more efficient if it is written in microcode, instead of machine code or assembler? Is there anything more basic than microcode?

Of course there is! Weak interactions of quarks satisfy you?


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 2:10 am 
Offline

Joined: Mon Jan 18, 2010 12:49 am
Posts: 34
art_zh wrote:
We're probably talking in different terms.
Would you please tell us the what microcode do you mean and its difference of the CPU code?

Mario (above) mentioned "microcode" which is a term I had never heard of until today! I looked up what microcode means on Wikipedia. From what I understand it is more basic than machine code.

Wikipedia wrote:
In some computer architectures, the machine code is implemented by a more fundamental underlying layer of programs called microprograms, providing a common machine language interface across a line or family of different models of computer with widely different underlying dataflows. This is done to facilitate porting of machine language programs between different models. An example of this use is the IBM System/360 family of computers and their successors. With dataflow path widths of 8 bits to 64 bits and beyond, they nevertheless present a common architecture at the machine language level across the entire line.

Using a microcode layer to implement an emulator enables the computer to present the architecture of an entirely different computer. The System/360 line used this to allow porting programs from earlier IBM machines to the new family of computers, e.g. an IBM 1401/1440/1460 emulator on the IBM S/360 model 40.

I thought maybe you and Mario were talking about the same principle?


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 2:14 am 
Offline

Joined: Mon Jan 18, 2010 12:49 am
Posts: 34
Mario wrote:
Jake wrote:
Mario wrote:
You're wrong - Kolibri should be written in microcode embedded CPU.

Would Kolibri be more efficient if it is written in microcode, instead of machine code or assembler? Is there anything more basic than microcode?

Of course there is! Weak interactions of quarks satisfy you?

Are you saying that "weak interaction of quarks" is a layer of hardware-level instructions and/or data structures, like machine code and microcode?


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 2:20 am 
Offline
Kernel Developer
User avatar

Joined: Fri Aug 14, 2009 1:46 am
Posts: 1351
x86 has a solid microcode = machine code = physical realization of assembly instructions.

What Mario said was his favorite way of doing conversations :)

Don't panic, he is not as terrible as he might appear when you know him better :shock:


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 2:55 am 
Offline

Joined: Mon Jan 18, 2010 12:49 am
Posts: 34
art_zh wrote:
x86 has a solid microcode = machine code = physical realization of assembly instructions.

What Mario said was his favorite way of doing conversations :)

Don't panic, he is not as terrible as he might appear when you know him better :shock:

Obviously you can tell I don't know much about computers, but I find Kolibri fascinating! I want to learn about it and possibly better alternatives. Yes I don't like the way Mario speaks to me but I guess he is just playing with me :razz:.

So when Mario says "Kolibri should be written in microcode embedded CPU" is that what Kolibri already does?

Would "microcode embedded CPU" (as Mario puts it) be the solution to what you say here:
art_zh wrote:
apart of CPU, there exist less sophisticated programmable devices inside PC those require hell of programming of their own microcontrollers in bare machine code.

Is Mario being informative or is he misleading me?? I have come here to learn rather than be confused. :(


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 2:58 am 
Offline

Joined: Mon Jan 18, 2010 12:49 am
Posts: 34
Mario wrote:
You're wrong - Kolibri should be written in microcode embedded CPU.

I came across the term "Microassembler".
http://en.wikipedia.org/wiki/Microassembler

If Kolibri was written in microcode embedded CPU, would it be more efficient with or without the use of a microassembler?


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 3:42 am 
As for the microcode processor and later - it was a joke. :lol:
Assembler actually created that programmers are not obsessed with programming directly to binary code. The end result is that a binary code that the assembler is almost identical, but the assembler greatly simplifies the development.


Top
   
 Post subject: Re: Machine code
PostPosted: Sun Mar 14, 2010 3:43 am 
Offline
Kernel Developer
User avatar

Joined: Fri Aug 14, 2009 1:46 am
Posts: 1351
Jake wrote:
Mario wrote:
You're wrong - Kolibri should be written in microcode embedded CPU.

I came across the term "Microassembler".
http://en.wikipedia.org/wiki/Microassembler

If Kolibri was written in microcode embedded CPU, would it be more efficient with or without the use of a microassembler?


I don't like to explain other peoples' jokes, but that one Mario said was really funny

An embedded CPU is a quiet and slow beast that controls your camera or mobile phone. Such a simple thing has a simpler set of commands, and the programs it runs are also (usually) much shorter. People sometimes call such embedded software "microcode" to stress its limited functionality and speed.

A monster inside your PC is different. He wants it all, and now - no compromise. All the other hardware only serves its huge appetites, and does it more or less satisfactory - never fast enough.


Top
   
 Post subject: Re: Machine code
PostPosted: Thu Mar 18, 2010 11:21 pm 
Offline

Joined: Mon Jan 18, 2010 12:49 am
Posts: 34
:lol:


Top
   
 Post subject: Re: Machine code
PostPosted: Sun May 15, 2011 8:33 am 
Separate topic Машинный код


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 16 posts ]  Go to page 1 2 Next

All times are UTC+03:00


Who is online

Users browsing this forum: MSN [Bot] and 8 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited