Questions tagged [low-level]

In terms of a computer system, low-level refers to the components that appears lower in the stack of system layers.

In terms of a computer system, low-level refers to the components that appears lower in the stack of system layers.

679 questions
-2
votes
1 answer

In arm assembly language, will " sub r3, r2, 5 " modify the value stored in r2?

Will the instruction just put the result in r3 leaving r2 unchanged or does it change r2 also?
Barath
  • 27
  • 5
-2
votes
1 answer

Android: run another app instead of requested

I write 2 applications for Android: A and B. All seems OK, but my task is very specified. It's not practical, it is learning low-level Android capabilities. I need simple following: listen a LAUNCH intent of app A in app B or another way if you…
Borisov
  • 55
  • 1
  • 7
-2
votes
3 answers

When does binary "become" decimal or hex? Is hex "faster" than decimal?

One quickly learns commands, say in C, of the form printf("%d", x); or printf("%lu", x); But no analog of %lu or %d exists for binary representations of x. My question is firstly, why is this so, and secondly, at what point - at which level of…
-2
votes
1 answer

Why can't we use a magnitude comparator through programming languages?

I just learned about the magnitude comparator circuit. A MC would tell with three bits: m < n m = n m > n So far I did not encouter a programming language, that would offer such an operation. I also can't remember an assembly statement for that. Is…
TheTrowser
  • 363
  • 4
  • 14
-2
votes
1 answer

Amount of occupied flash memory in relation to number of bytes in a .HEX file

Is the amount of flash memory occupied by a program on a chip possible to calculate based on the content and size of the .HEX file? And if not, is there another way? Does a chip claiming to have 32kB of flash memory have exactly 32kB of availible…
-2
votes
2 answers

Need Assembly Programming Help (TASM) - Booth's Algorithm

I've written an algorithm to simulate Booth's Algorithm using only Add, Sub, and Logical Operators and return a hexadecimal value. My Tasm compiler keeps throwing me these errors. When I try to omodify the code, it still doesn't work. Could someone…
Julian
  • 1,853
  • 5
  • 27
  • 48
-3
votes
1 answer

Memory layout of arrays in Go?

My code is below. When I check the address of the values it is stored as 280 288 290 298. Why is it stored in this pattern? package main import "fmt" func main() { const a = 1111111111111111111 test := [7]int{a, 1, 33333,4,6,7,7} …
-3
votes
3 answers

C: Retrieving char value from linked list

I've been tampering with linked lists that is storing values of type char array. The issue I'm having is retrieving the value to be stored in another char that will be used for display. I've tried using (example): char display*; node * data =…
Badrukk
  • 3
  • 3
-3
votes
1 answer

Unexpected Result After Arithmetically Right Shifting

In the following code when I arithmetically right shift MSB3 (which happens to be 0) by 31 I get 2. But when I replace MSB3 by 0 I get 0, which is the result I was expecting in the first case. Why does this happen? const int value = 0; …
fYre
  • 1,212
  • 3
  • 11
  • 16
-3
votes
1 answer

What is the absolutely fastest way to output a signal to external hardware in modern PC?

I was wondering, what is the absolutely fastest way (lowest latency) to produce external signal (for example CMOS state change from 0 to 1 on electrical wire connected to other device etc.) from PC, counting from the moment, where CPU assembler…
-4
votes
0 answers

Error when trying to build after trying to implement kernel and bootloader for an OS

So, when just using the first partition, without bootloader and kernel, it builds normally, but now, it wont work, even though I think I followed the tutorial right (link: https://www.youtube.com/watch?v=srbnMNk7K7k)log when buildingcode I tried…
-4
votes
1 answer

Converting any file to binary 1 and 0 and then back to original file without corruption in python

I need a bit help here, don't ask me why it is a wild idea but I want to convert any file into pure binary code 1 and 0 and then back to the original file. The requirement is that when converted the binary code need to be stored in a string data…
Tanush
  • 3
  • 2
-4
votes
1 answer

Django low level cache views

I have an index view which validates a form containing various data. Even though the thankyou.html page doesn't have complex calculations to kill the server, I would like to render a slightly different html page if thankyou.html is already low level…
user823148
  • 147
  • 2
  • 14
-4
votes
1 answer

C program stopped working when i tried changing some address values

Have a look at my code : #include #include int main (int argc, const char *argv[]) { typedef unsigned char byte; byte *pointer; byte b1=1; byte b2=2; int i1 =4; int i2 =0x12345678; byte b3=5; byte b4=6; byte b5=7; byte…
-4
votes
2 answers

What are the disadvantages of using high-level languages?

I take that the obvious advantages are maintainability, programmer-friendliness etc. but what are the disadvantages? Is the compiler being put under extra work to convert where it may not be necessary? Are there situations where low-level…
dunck
  • 398
  • 1
  • 5
  • 18
1 2 3
45
46