Questions tagged [low-level]

Questions concerning low-level aspects of a system: programming close to the underlying details and hardware.

72 questions
83
votes
7 answers

Why are bit masks called "masks" and what purpose do they serve?

Why are "bit masks" called like this? I know that they are mainly used for bitwise operations and the usage of bit masks is more efficient than the usage of separate variables. However my question is why and when were bit masks invented? Were they…
yoyo_fun
  • 2,267
  • 3
  • 17
  • 22
75
votes
11 answers

Why are cryptic short identifiers still so common in low-level programming?

There used to be very good reasons for keeping instruction / register names short. Those reasons no longer apply, but short cryptic names are still very common in low-level programming. Why is this? Is it just because old habits are hard to break,…
Roman Starkov
  • 4,469
  • 3
  • 31
  • 38
58
votes
6 answers

Why do many functions that return structures in C, actually return pointers to structures?

What is the advantage of returning a pointer to a structure as opposed to returning the whole structure in the return statement of the function? I am talking about functions like fopen and other low level functions but probably there are higher…
yoyo_fun
  • 2,267
  • 3
  • 17
  • 22
57
votes
4 answers

Development process used for the code on Apollo 11 missions?

The Apollo missions had technology no more complicated than a pocket calculator. From link here, there's an information about Apollo Guidance Computer (AGC) The on-board Apollo Guidance Computer (AGC) was about 1 cubic foot with 2K of 16-bit RAM…
54
votes
11 answers

Were the first assemblers written in machine code?

I am reading the book The Elements of Computing Systems: Building a Modern Computer from First Principles, which contains projects encompassing the build of a computer from boolean gates all the way to high level applications (in that order). The…
The111
  • 713
  • 1
  • 6
  • 11
44
votes
10 answers

Why not have a High Level Language based OS? Are Low Level Languages more efficient?

Without being presumptuous, I would like you to consider the possibility of this. Most OS today are based on pretty low level languages (mainly C/C++) Even the new ones such as Android uses JNI & underlying implementation is in C In fact, (this is a…
37
votes
5 answers

What is the absolute minimum set of instructions required to build a Turing complete processor

I have a general idea of how the processor handles instructions but spend my time working in mostly high level languages. Maybe somebody who works closer to the iron can provide some valuable insight. Assuming that programming languages are…
Evan Plaice
  • 5,725
  • 2
  • 24
  • 34
35
votes
13 answers

Low level programming - what's in it for me?

For years I have considered digging into what I consider "low level" languages. For me this means C and assembly. However I had no time for this yet, nor has it EVER been neccessary. Now because I don't see any neccessity arising, I feel like I…
back2dos
  • 29,980
  • 3
  • 73
  • 114
34
votes
13 answers

How good does a well-rounded programmer need to be with bit-wise operations?

I have been browsing some OpenJDK code recently and have found some intriguing pieces of code there that has to do with bit-wise operations. I even asked a question about it on StackOverflow. Another example that illustrates the point: 1141 …
c_maker
  • 8,250
  • 4
  • 35
  • 53
33
votes
11 answers

Is it wise for a high level developer to spend time studying assembly?

It is clear that the knowledge of low level stuff is very important in our work. But in a situation where you're already developing commercial software on a high level, and when you already have a chosen direction but don't have any assembly skill,…
zkaje
  • 433
  • 3
  • 6
24
votes
3 answers

Why do executables depend on the OS but not on the CPU?

If I write a C program and compile it to an .exe file, the .exe file contains raw machine instructions to the CPU. (I think). If so, how is it possible for me to run the compiled file on any computer that runs a modern version of Windows? Each…
Aviv Cohn
  • 21,190
  • 31
  • 118
  • 178
23
votes
9 answers

What are the complexities of memory-unmanaged programming?

Or in other words, what specific problems did automated garbage collection solve? I've never done low-level programming, so I don't know how complicated can freeing resources get. The kind of bugs that GC addresses seem (at least to an external…
deprecated
  • 3,297
  • 3
  • 20
  • 26
22
votes
7 answers

How do programmers deal with low level software development in high level languages?

I am somewhat new to programming and the best way I can ask this question is with an example. I know how to do basic things in Java and C#. Things like a small windows forms application or make a generic class. I've basically been learning and…
fender1901
  • 485
  • 1
  • 4
  • 9
18
votes
4 answers

Why do some programmers categorize C, Python, C++ differently? - regarding level

I am taking an introductory course on python and the instructor says that python is a high level language and C and C++ are low level languages. It's just confusing. I thought that C, C++, Python, Java, etc were all high level languages. I was…
atheistlearner
  • 309
  • 2
  • 5
17
votes
10 answers

As a programmer, should I know low and high-level programming languages?

I been contacted to do some work remote controlling LEDs displays over TCP/IP, but my experience and preparation is mostly about high-level programming language. I said that to the person who contact me about the work and he told me that: "if you…
job
  • 183
  • 1
  • 5
1
2 3 4 5