Questions tagged [instructions]

Questions about instructions of real CPUs, VMs or compiler IRs.

Questions about instructions of real CPUs such as ARM and x86, virtual machines such as Java, or compiler internal representations such as LLVM.

574 questions
0
votes
1 answer

inserting a function call after the current instruction using LLVM

I want to insert a function call in my code after the current instruction using LLVM. The function call takes as arguments a load instruction and I also want this load instruction to load the value after the current instruction is executed. If I…
Mahwish
  • 101
  • 2
  • 9
0
votes
2 answers

How can I determine which instructions are supported on which Intel processor families?

Just as an example, I want to know exactly which of the x86 processor families support the fisttp instruction. I'm pretty certain that it's supported on the Pentium 4 and beyond, but I'd like to have some official verification of that. And more…
Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
0
votes
0 answers

How to identify a loop on the instruction level?

Can a direct branch instruction with a lower target address than the address of the branch instruction itself be considered as the beginning of a loop? Is this condition sufficient, or are there are other situations (compiler optimizations, etc) in…
lekroif
  • 992
  • 3
  • 12
  • 24
0
votes
1 answer

Where can I find instruction address(PC value) in linux kernel?

All. I am trying to print current PC value, when I allocate a new physical page. In linux kernel source, mm/memory.c is responsible for allocating pages, but it does not have information about PC value... Does anyone know where can I find this PC…
cienlux
  • 13
  • 4
0
votes
1 answer

Wiki engine development guideline

I am not looking for an open source wiki engine. There are plenty of them of course. But is there a guideline or a book on development of a wiki engine from scratch. I'm interested in the methodologies, design patterns, algorithms and best practices…
Vahid
  • 257
  • 4
  • 14
0
votes
1 answer

Full name of operators in LLVM

How do I get the whole name of an operator in LLVM? I'm iterating through blocks, and then, in each of their instructions, I try to get the operator name, but I do only get a part of it. Running the following code: virtual bool…
Rubens
  • 14,478
  • 11
  • 63
  • 92
0
votes
1 answer

Good manual on Assembly flags

What is a good Manual/Article on all of the Assembly flags and what instructions affect each flags? Thanks!
Javi
  • 889
  • 1
  • 16
  • 41
0
votes
2 answers

Can a CPU process instructions as data?

While preparing for an exam, I came across this doubt. Does a CPU process instructions as data?
InsulT
  • 11
  • 1
0
votes
1 answer

VMWare Virtualized Applications and its Running Process instructions Tracing

I'm exploring on VMWare Virtualization Concept, and looking mainly on below two: 1) Is it possible to trace out instructions from a process running in Guest OS? if so a) How to trace, in the Guest OS itself ? b) How to trace, at…
0
votes
1 answer

implecations of fetching and decoding two instructions simultaniously

Instruction is fetched and decoded one at a time usually per cycle. I was wondering what are the implications if we fetch and decode 2 instructions simultaneously. What would be the changes in the architecture that needs to be changed?
0
votes
1 answer

SIMD instructions used in assembly listing

If the following compilation option is used –O3 –mtune=barcelona –msse4.2 –fprefetch-loop-arrays How to know from assembly listing that the SIMD instructions are used ?
Basmah
  • 829
  • 3
  • 13
  • 25
0
votes
1 answer

Assembly MIPS TAl instructions

Can someone point me to a list or something containing all the Assembly (MIPS) TAL instructions? I believe that mul $8, $17, $20 Will become mult $17, $20 mflo $8 But I was unable to find all instructions.
Favolas
  • 6,963
  • 29
  • 75
  • 127
-1
votes
1 answer

List of ARM instructions implementing half-precision floating-point arithmetic

Arm Architecture Reference Manual for A-profile architecture (emphasis added): FPHP, bits [27:24] 0b0011 As for 0b0010, and adds support for half-precision floating-point arithmetic. A simple question: where is to find a list of ARM instructions…
pmor
  • 5,392
  • 4
  • 17
  • 36
-1
votes
2 answers

Can a loop be considered a function on a basic level?

If you go down to assembler level and basic CPU instructions, what is a function? A function is just some block of code that is surrounded by JMP (jump) instructions. So, instruction pointer (instruction that is currently executed) jumps from some…
ScienceDiscoverer
  • 205
  • 1
  • 3
  • 13
-1
votes
2 answers

Problem in finding the Average of an array in mips

I have recently started learning the Mips assembly language and was on its basics. I had a few pronlems in finding the mean of my program in mips. Can someone help me out by explaining to me the instructions used to find out the mean. An example of…