OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Mar 18, 2024 8:15 pm

All times are UTC - 6 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 84 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Tue May 01, 2018 7:31 pm 
Offline
Member
Member

Joined: Wed Mar 21, 2018 12:11 pm
Posts: 111
@All the OS Dev.org Forums moderators, you will answer all the questions that I posted in this topic???

@Schol-R-LEA, Brendan, simeonz, alexfru, you will answer all the questions that I posted in this topic???


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Tue May 01, 2018 7:35 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 1925
Location: Athens, GA, USA
There really isn't any way to answer the question. How could we possibly know that sort of thing? How could anyone know it? Any figure we give you would be a flat-out lie.

Oh, and I'm not a moderator...

_________________
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Tue May 01, 2018 8:17 pm 
Offline
Member
Member

Joined: Wed Mar 21, 2018 12:11 pm
Posts: 111
Schol-R-LEA wrote:
There really isn't any way to answer the question. How could we possibly know that sort of thing? How could anyone know it? Any figure we give you would be a flat-out lie.

Oh, and I'm not a moderator...

@Schol-R-LEA

If DavidCooper did not answered, he said his opinions to my questions.

I did not want to say that you is a moderator, I tried to get the answers of all forum moderators and others, including you.


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Tue May 01, 2018 9:37 pm 
Offline
Member
Member

Joined: Mon Jul 25, 2016 6:54 pm
Posts: 223
Location: Adelaide, Australia
I'll give my 2c.

The number of programmers coding in machine code professionally: 0 almost certainly.
The percentage, also 0. There is no reason to ever code in machine code for any platform that an assembler exists for, and no company would use a processor without an assembler.

The percentage coding in assembly: probably 5-10%. These would mostly be embedded systems developers, or hardware engineers writing firmware/drivers. Even these people probably use assembly only sometimes, not every day.


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Tue May 01, 2018 9:42 pm 
Offline
Member
Member

Joined: Wed Mar 21, 2018 12:11 pm
Posts: 111
StudlyCaps wrote:
I'll give my 2c.

The number of programmers coding in machine code professionally: 0 almost certainly.
The percentage, also 0. There is no reason to ever code in machine code for any platform that an assembler exists for, and no company would use a processor without an assembler.

The percentage coding in assembly: probably 5-10%. These would mostly be embedded systems developers, or hardware engineers writing firmware/drivers. Even these people probably use assembly only sometimes, not every day.


@StudlyCaps

Many thanks!


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Wed May 02, 2018 1:34 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
StudlyCaps wrote:
The percentage coding in assembly: probably 5-10%.


I think this is an overestimation of at least one order of magnitude. I don't think the embedded realm in total comes up to that percentage, and even in the embedded realm, most coding is done in C, with quite some percentage done in C++. Actually, much of the code running on embedded systems is generated, not hardcoded...

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Wed May 02, 2018 1:52 am 
Offline
Member
Member

Joined: Fri Aug 19, 2016 10:28 pm
Posts: 360
manhobby wrote:
What is the probable quantity of programmers that currently are coding in machine code?
First, as StudlyCaps stated, aside from enthusiasts, I expect no work to be done directly in machine code. Not on the professional level. Programming in machine code, which I have never done myself, involves writing number sequences, in some cases bit-packed binary sequences, which is neither productive, nor artistic in itself. You can check out this documentary around the 22 minute mark. They were apparently programming in machine code in 1962, but at this point, they were still figuring out what to do with computers anyway. Today, there are legitimate reasons to understand machine code or have some knowledge of it, but there is a difference between understanding and using directly to create software. Those reasons fall in two categories. First, generating or manipulating programmatically code requires some understanding of machine code. You have to do that when linking, compiling, generating code at run-time in performance sensitive software, hot patching, debugging, tracing, etc. The second principle reason for being vaguely familiar with machine code is code alignment and branching through address arithmetic in assembler programming. Neither of those require hard knowledge, only sketchy knowledge, awareness of the pertinent documentation, and overall understanding.

Quote:
For example, only 1 programmer is currently coding in machine code?

2? 5?
This part of the question is concerning. It is almost inconceivable that you are asking this seriously. At some point I genuinely speculated that someone might be using this forum as a Turing test for their AI. Your question is so unorthodox.


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Wed May 02, 2018 2:39 am 
Offline
Member
Member

Joined: Wed Mar 21, 2018 12:11 pm
Posts: 111
simeonz wrote:
manhobby wrote:

Quote:
For example, only 1 programmer is currently coding in machine code?

2? 5?
This part of the question is concerning. It is almost inconceivable that you are asking this seriously. At some point I genuinely speculated that someone might be using this forum as a Turing test for their AI. Your question is so unorthodox.


@simeonz

Please, sorry me!


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Wed May 02, 2018 2:54 am 
Offline
Member
Member

Joined: Fri Aug 19, 2016 10:28 pm
Posts: 360
I am not offended in any way. I am just confused.

I also just realized that we can add disassemblers and possibly decompilers to the list of software that requires processing of machine code. Not that it is relevant to the original question.


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Wed May 02, 2018 5:25 pm 
Offline
Member
Member

Joined: Mon Jul 05, 2010 4:15 pm
Posts: 595
< 0.001% are coding in pure machine code (meaning writing the instruction as numbers directly, was it that TS meant?). Reason, creating your own assembler language and compiler is easy and that time spent immediately increase productivity. So if you create your own exotic CPU where no assembler compiler (assembler compiler is that even a term, write it to avoid confusion with assembler language) is available, you will write one. I've done this myself and it wasn't hard. Also the assembler was created together with the CPU as a test bed. You create the programs along with the CPU in order to prove your concept which are simulated on RTL level.

So, a CPU for which no assembler compiler exist is highly unlikely.


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Wed May 02, 2018 9:15 pm 
Offline
Member
Member

Joined: Wed Mar 21, 2018 12:11 pm
Posts: 111
@simeonz, StudlyCaps, Solar, OSwhatever,

Many thanks!


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Thu May 03, 2018 1:39 am 
Offline
Member
Member

Joined: Wed Mar 21, 2018 12:11 pm
Posts: 111
OSwhatever wrote:
< 0.001% are coding in pure machine code (meaning writing the instruction as numbers directly, was it that TS meant?).


@OSwhatever

According the Deitels in book "Java How to Program", "machine code generally consist of strings of numbers (ultimately reduced to 1s and 0s) that instruct computers to perform their most elementary operations one at a time. Machine languages are machine dependent (a particular machine language can be used on only one type of computer)".


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Thu May 03, 2018 6:11 am 
Offline
Member
Member
User avatar

Joined: Fri Feb 17, 2017 4:01 pm
Posts: 640
Location: Ukraine, Bachmut
emmm, manhobby, do you like assembly and wanna program in it? learn it and do it. it's all possible. writing instructions directly in numbers in hexeditor is stupid now for sure.
asking the same questions over and over and over on different forums is not going to help.

_________________
ANT - NT-like OS for x64 and arm64.
efify - UEFI for a couple of boards (mips and arm). suspended due to lost of all the target park boards (russians destroyed our town).


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Thu May 03, 2018 10:25 am 
Offline
Member
Member

Joined: Wed Mar 21, 2018 12:11 pm
Posts: 111
Schol-R-LEA wrote:
There really isn't any way to answer the question. How could we possibly know that sort of thing? How could anyone know it? Any figure we give you would be a flat-out lie.



@Schol-R-LEA

How can Andrew Tanenbaum know that no one programs in machine language today?

According the book of Andrew Tanenbaum, STRUCTURED COMPUTER ORGANIZATION, no one programs in machine language today:


"The reason that people use assembly language, as opposed to programming in machine language (in hexadecimal), is that it is much easier to program in assembly language. The use of symbolic names and symbolic addresses instead of binary or octal ones makes an enormous difference. Most people can remember that the abbreviations for add, subtract, multiply, and divide are ADD, SUB, MUL, and DIV, but few can remember the corresponding numerical values the machine uses.

The assembly language programmer need only remember the symbolic names because the assembler translates them to the machine instructions. The same remarks apply to addresses. The assembly language programmer can give symbolic names to memory locations and have the assembler worry about supplying the correct numerical values. The machine language programmer must always work with the numerical values of the addresses. As a consequence, no one programs in machine language today, although people did so decades ago, before assemblers had been invented".

@Schol-R-LEA

Andrew Tanenbaum lied?


Top
 Profile  
 
 Post subject: Re: Probable quantity of machine code programmers and Assemb
PostPosted: Thu May 03, 2018 10:51 am 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 1925
Location: Athens, GA, USA
manhobby wrote:

@Schol-R-LEA

Andrew Tanenbaum lied?


For all intents and purposes, no. He may not have been literally accurate, as there is no way to actually know for certain (and there are always wingnuts, specialists, and hobbyists who do things like that anyway), but the numbers are so small that they are negligible. His statement was basically accurate, because for anyone who isn't doing so either for fun or for some exceeding specialized purpose (as is the case for DavidCooper), programming in machine language - or even doing extensive programming in assembly language, for things that don't need it - is stupid.

To repeat something I've said before: modern programming is all about increasing levels of abstraction. Machine code has no abstraction at all, and bare assembly language (i.e., without any kind of macros or other structuring) has only minimal abstraction. Using either of them means discarding nearly everything we've learned in sixty years' of improvements in the methods of program development and software engineering.

I have to second the question which Zaval, and several others, have already asked: what are you trying to accomplish by asking these questions? We've already told you that this is a dead end with regards to professional programming. If you want to learn machine code or assembly language programming out of curiosity or as a hobby, go ahead and do it (Hell, there are probably some here who would help you with that, and there several more specialized message boards where they certainly would), but there is no reason for you to be belaboring this if you intent is to find work.

Or do you think we are lying? If you do, then what would you gain out of badgering us about this - seriously, do you think we'll change our answers or something?

_________________
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 84 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 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 © 2000, 2002, 2005, 2007 phpBB Group