The coding in binary code and assembly is necessary currentl

All development related issues welcome

Moderator: Moderator Team

Post Reply
clark_hobby
Posts: 11
Joined: Tue Sep 09, 2014 1:56 am

The coding in binary code and assembly is necessary currentl

Post by clark_hobby »

...
Last edited by clark_hobby on Sun Dec 06, 2015 5:44 pm, edited 1 time in total.
User avatar
Konata
Posts: 391
Joined: Sun Apr 20, 2014 8:54 pm

Re: The coding in binary code and assembly is necessary curr

Post by Konata »

Well I don't think the devs actually program in binary.

But for the second question, I don't even know of any bare-metal software that doesn't have at least a little bit of assembly. There's very specific things you need to do, like getting the x86 processor out of real mode and setting up the bootloader. I never developed an operating system but I'm sure there's a few more things that are impossible or impractical to do in C.

That's what the Hardware Abstraction Layer in NT is for anyway, so you can write that platform-specific code and not worry about the rest of the OS being dependent on that platform.
User avatar
EmuandCo
Developer
Posts: 4734
Joined: Sun Nov 28, 2004 7:52 pm
Location: Germany, Bavaria, Steinfeld
Contact:

Re: The coding in binary code and assembly is necessary curr

Post by EmuandCo »

We have plenty of ASM Code where it's needed badly, like in the example Konata mentioned. The rest is WinAPI C / C++.
ReactOS is still in alpha stage, meaning it is not feature-complete and is recommended only for evaluation and testing purposes.

If my post/reply offends or insults you, be sure that you know what sarcasm is...
clark_hobby
Posts: 11
Joined: Tue Sep 09, 2014 1:56 am

Re: The coding in binary code and assembly is necessary curr

Post by clark_hobby »

...
Last edited by clark_hobby on Sun Dec 06, 2015 5:44 pm, edited 1 time in total.
User avatar
Konata
Posts: 391
Joined: Sun Apr 20, 2014 8:54 pm

Re: The coding in binary code and assembly is necessary curr

Post by Konata »

[ external image ]

Like Emuand said ROS is written in C, C++, and API calls, there's only a bit of Assembly where it's required. And nobody writes in binary, the lowest you could go is hexadecimal. Most CPUs take hexcodes and turn them into binary directly, they've been doing that for decades. But everyone uses Assembly because writing in hexadecimal directly is insane.
clark_hobby
Posts: 11
Joined: Tue Sep 09, 2014 1:56 am

Re: The coding in binary code and assembly is necessary curr

Post by clark_hobby »

...
Last edited by clark_hobby on Sun Dec 06, 2015 5:45 pm, edited 1 time in total.
clark_hobby
Posts: 11
Joined: Tue Sep 09, 2014 1:56 am

Re: The coding in binary code and assembly is necessary curr

Post by clark_hobby »

...
Last edited by clark_hobby on Sun Dec 06, 2015 5:45 pm, edited 1 time in total.
clark_hobby
Posts: 11
Joined: Tue Sep 09, 2014 1:56 am

Re: The coding in binary code and assembly is necessary curr

Post by clark_hobby »

...
Last edited by clark_hobby on Sun Dec 06, 2015 5:45 pm, edited 1 time in total.
clark_hobby
Posts: 11
Joined: Tue Sep 09, 2014 1:56 am

Re: The coding in binary code and assembly is necessary curr

Post by clark_hobby »

...
Last edited by clark_hobby on Sun Dec 06, 2015 5:46 pm, edited 1 time in total.
Webunny
Posts: 1201
Joined: Sat Apr 28, 2012 1:30 pm

Re: The coding in binary code and assembly is necessary curr

Post by Webunny »

Konata wrote:[ external image ]

Like Emuand said ROS is written in C, C++, and API calls, there's only a bit of Assembly where it's required. And nobody writes in binary, the lowest you could go is hexadecimal. Most CPUs take hexcodes and turn them into binary directly, they've been doing that for decades. But everyone uses Assembly because writing in hexadecimal directly is insane.
That's not *entirely* true. There are rare instances where some freaks code in binary. It's a niche-thing and extremely rare; a fringe activity, thus, but it is/can be done, still.

You can search the internet for a few examples (and even tutorials). But even then it's clear it's a real hard-core thing, and normal humans usually go only as far as Assembly.
User avatar
EmuandCo
Developer
Posts: 4734
Joined: Sun Nov 28, 2004 7:52 pm
Location: Germany, Bavaria, Steinfeld
Contact:

Re: The coding in binary code and assembly is necessary curr

Post by EmuandCo »

As I said we use C language and some rare assembler code. ReactOS aims to be portable easily. I personally see no use In binary code for one CPU type. But ask the other developers too.
ReactOS is still in alpha stage, meaning it is not feature-complete and is recommended only for evaluation and testing purposes.

If my post/reply offends or insults you, be sure that you know what sarcasm is...
fred02
Posts: 551
Joined: Thu Nov 22, 2007 5:54 pm

Re: The coding in binary code and assembly is necessary curr

Post by fred02 »

Just a random thought: could clark_hobby's skills be helpful for an x64 or an ARM ports?
User avatar
EmuandCo
Developer
Posts: 4734
Joined: Sun Nov 28, 2004 7:52 pm
Location: Germany, Bavaria, Steinfeld
Contact:

Re: The coding in binary code and assembly is necessary curr

Post by EmuandCo »

Depends on what assembler he is talking about.
ReactOS is still in alpha stage, meaning it is not feature-complete and is recommended only for evaluation and testing purposes.

If my post/reply offends or insults you, be sure that you know what sarcasm is...
Z98
Release Engineer
Posts: 3379
Joined: Tue May 02, 2006 8:16 pm
Contact:

Re: The coding in binary code and assembly is necessary curr

Post by Z98 »

Assembly would only be used for very small bits of code. What's more valuable is actually understanding the underlying architecture.
Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests