Skip to main content

Questions tagged [assembly]

An assembly language is a low-level programming language for a computer, microcontroller, or other programmable device, in which each statement corresponds to a single machine code instruction.

-2 votes
3 answers
356 views

Backstory: Writing a QImage to Sixel renderer. Feel like I have optimized it the best I can using basic c++. I have heard suggestions here or there that you can utilize things like GPU, SIMD, insert ...
Anon's user avatar
  • 3,649
3 votes
1 answer
311 views

I'm writing a JIT runtime, and I've started thinking about shorter variants of some instructions. In x64 we can do at least two kinds of jumps: rel8 and rel32. The first one takes say 2 bytes (opcode +...
freakish's user avatar
  • 3,085
0 votes
0 answers
163 views

Recently, I started learning Arm64 assembly. The assembler I'm using is the GNU Assembler (GAS). The version of GAS I'm using is GNU assembler (GNU Binutils for Ubuntu) 2.42. I want to make my code ...
CorkiMain's user avatar
0 votes
2 answers
375 views

Something like this cmp $0, %eax jl exit jumps to the exit: label if the content of register eax is less than 0. So it's kind of jl applies the < operator to the operands of cmp, but in reverse ...
Enlico's user avatar
  • 130
-1 votes
1 answer
137 views

Recently I encountered an issue at work where a unit test written in C++ would crash only when being compiled with MSVC 2017 (MSVC 2019 and up are fine). I tried to debug this issue and it seems like ...
yijiem's user avatar
  • 107
7 votes
3 answers
2k views

Assuming that a VM runs a JIT compiler on otherwise "interpreted" code, such as a line by line interpreter or some form of bytecode/IL code and determines that it can create optimised native ...
AIWalker's user avatar
  • 1,365
-3 votes
1 answer
489 views

I know that a lot of compilers use an assembler to compile to machine code, to make an executable (compiled program). Some people even made their own assemblers, or they just use an existing assembler,...
Jack Murrow's user avatar
-5 votes
2 answers
193 views

Suppose we maintain a massive electronic library of texts/photos/videos etc., and want to ensure that these files are readable indefinitely long in the future. [Update] one of the major problems with ...
Ilya Zakharevich's user avatar
0 votes
2 answers
287 views

I'm having an issue with dependencies in a C# app that I'm creating. I have an assembly for my authentication process, and a separate assembly for starting up the main program once authentication is ...
Adam B's user avatar
  • 1,660
2 votes
1 answer
450 views

In Computer Systems: a Programmer's Perspective, Alignment is enforced by making sure that every data type is organized and allocated in such a way that every object within the type satisfies its ...
Tim's user avatar
  • 5,565
1 vote
3 answers
278 views

If I am correct, an assembly language uses the program stack to store data. Is it correct that the program stack is partitioned to frames, each of which is for a call to a procedure? So there is no ...
Tim's user avatar
  • 5,565
-1 votes
1 answer
123 views

In Computer Systems: a Programmer's Perspective: procedure calls may involve passing data as arguments, and returning from a procedure may also involve returning a value. With x86-64, most of these ...
Tim's user avatar
  • 5,565
0 votes
2 answers
423 views

From Computer Systems: a Programmer's Perspective, about assembly languages: We see that the Intel and ATT formats differ in the following ways: The Intel code omits the size designation suffixes. We ...
Tim's user avatar
  • 5,565
0 votes
3 answers
218 views

When compiling C programs to assembly programs and then to machine programs, does the assembler (e.g. the one used in GCC or other popular C compilers) perform the same tasks as the translator from C ...
Tim's user avatar
  • 5,565
-3 votes
2 answers
243 views

Why will it take that long to transition all Mac software to ARM according to Apple? I thought all they would need to do is to recompile the source code of their apps and rewrite SIMD code from intel ...
mbl's user avatar
  • 111

15 30 50 per page
1
2 3 4 5
12