instructions Questions
2
Solved
I am really confused and the question may sound dumb but I'm really not sure what it means when we say an instruction size is 32-bit or 16-bit.
Is it if operand size is 32-bit then we say it's an 3...
Punchinello asked 29/10, 2013 at 11:9
2
Solved
Type-specific Java bytecode instructions have single-character prefixes to specify the type that the instruction relates to.
Taken from Wikipedia's entry on Java bytecode
In each case, the...
Karakorum asked 27/9, 2013 at 0:59
2
Solved
Why does a nopl instruction in an x86 take an operand? Don't nops just do, well, nothing?
nopl 0x0(%rax)
Stays asked 10/6, 2013 at 18:51
5
Solved
I like examples, so I wrote a bit of self-modifying code in c...
#include <stdio.h>
#include <sys/mman.h> // linux
int main(void) {
unsigned char *c = mmap(NULL, 7, PROT_READ|PROT_WR...
Devonadevondra asked 12/6, 2012 at 1:10
2
Solved
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 ha...
Return asked 19/7, 2013 at 13:57
2
Solved
Here is some C, found in a textbook I'm learning:
...
do {
...
n--;
} while (n > 0)
...
I assume n is at %edx.
The assembly code produced is:
testl %edx, %edx
jle .L5
I understand tha...
Haemachrome asked 30/6, 2013 at 12:2
2
I just started to use SS2 optimization of image processing, but for the 3 channel 24 bit color images have no idea.
My pix data arranged by BGR BGR BGR ... ,unsigned char 8-bi, so if I want to imp...
Parturient asked 13/3, 2013 at 3:55
1
This question continues on my question here (on the advice of Mystical):
C code loop performance
Continuing on my question, when i use packed instructions instead of scalar instructions the cod...
Globuliferous asked 4/4, 2012 at 8:11
4
Solved
Is there a way using C or assembler or maybe even C# to get an accurate measure of how long it takes to execute a ADD instruction?
Clayborne asked 17/4, 2010 at 14:37
3
Solved
I have a multiply-add kernel inside my application and I want to increase its performance.
I use an Intel Core i7-960 (3.2 GHz clock) and have already manually implemented the kernel using SSE in...
Menado asked 3/4, 2012 at 11:9
2
Solved
The definitions of Turing Machine say that it is prohibited for one to read/modify it's instruction table (program). Exactly, Turing Machine has no access to it's own program.
What benefits can be...
Androgyne asked 8/10, 2009 at 4:29
4
Solved
What IL instructions are not exposed by C#?
I'm referring to instructions like sizeof and cpblk - there's no class or command that executes these instructions (sizeof in C# is computed at compile ...
Anthropometry asked 18/8, 2011 at 16:15
3
Solved
After seeing the last screenshots of new foursquare application and their balloon like cartoon instructions, I'd like to create some of these in my application.
I found a similar question for iPho...
Aaronaaronic asked 13/8, 2011 at 16:59
8
Solved
I realize that this question is impossible to answer absolutely, but I'm only after ballpark figures:
Given a reasonably sized C-program (thousands of lines of code), on average, how many ASM-inst...
Refractometer asked 1/12, 2008 at 16:54
2
Solved
I am very new to Assembly language. I was reading about MIPS architecture and came to know that you have addi opcode but there is no subi opcode. Why don't we have a subi opcode?
Undercoating asked 2/8, 2011 at 20:38
3
Solved
I am compiling this C program and comparing the generated assembly code:
int main(){ return 0; }
GCC gives this main function (cc hello.c -S):
_main:
LFB2:
pushq %rbp
LCFI0:
movq %rsp, %rbp
L...
Daughtry asked 4/2, 2011 at 23:25
4
I'm taking an x86 assembly language programming class and know that certain instructions shouldn't be used anymore -- because they're slow on modern processors; for example, the loop instruction.
...
Consumerism asked 2/2, 2011 at 22:7
1
Solved
I am trying to implement a subset of Java for an academic study. Well, I'm in the last stages (code generation) and I wrote a rather simple program to see how method arguments are handled:
class M...
Staten asked 9/1, 2011 at 19:59
1
Solved
If we have:
test dword ptr [eax], 2000h
je label1:
Is there any value other than 0 in dword ptr [eax] that would make the jump take place?
Berthaberthe asked 16/12, 2010 at 7:27
3
Solved
Does the ret instruction cause "esp" register to be increased by 4?
Borden asked 27/11, 2010 at 15:46
2
Solved
I'm reading the instruction
imul 0xffffffd4(%ebp, %ebx, 4), %eax
and I'm baffled by what it's doing exactly. I understand that imul multiplies, but I can't figure out the syntax.
Annadiana asked 4/10, 2010 at 23:57
12
Solved
I have been developing websites for quite some time and I am not so good in designing websites? My Boss is refering me to take some lessons on it.
But I really want to stick to development rather...
Dorsett asked 21/5, 2010 at 7:34
4
Solved
I am trying to figure out how many clock cycles or total instructions it takes to access a pointer in C. I dont think I know how to figure out for example, p->x = d->a + f->b
i would assume two lo...
Colombia asked 30/4, 2010 at 20:35
4
Solved
I know that executables contain instructions, but what exactly are these instructions? If I want to call the MessageBox API function for example, what does the instruction look like?
Thanks.
Weevil asked 24/10, 2009 at 2:43
3
Solved
I've a question (just like me)...
but...if I've a choosen algorithm written in C or C++ or whatever code you want...fixed a compiler I can determine the number of instructions but these intruction...
Velvety asked 26/2, 2009 at 10:26
© 2022 - 2024 — McMap. All rights reserved.