|
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-instructions would be generated. In other words, what's a realistic...
Started by Henrik Paul on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Statements for function calls containing many parameters can be dozens of instructions as the ....
Statements like i++; can translate to a single INC AX .
That varies tremendously! I woudn't believe anyone if they tried to offer a rough conversion .
|
|
Lets say we have an average of one page fault every 20,000,000 instructions, a normal instruction takes 2 nanoseconds, and a page fault causes the instruction to take an additional 10 milliseconds. What is the average instruction time, taking page faults...
Answer Snippets (Read the full thread at stackoverflow):
20,000,000 instructions, one of them will page-fault
Therefore, the 20,000,000 instructions will take
(2 nanoseconds * 20,000,000) + 10 milliseconds
get the result (which is the total ....
2.5 nanoseconds? Pretty simple arithmetic, I guess.
|
|
Do graphic cards have instruction sets of their own? I assume they do, but I have been wondering if it is proprietary or if there is some sort of open standard.
Is every GPU instruction preceded by a CPU instruction or is it seamless? That is does OpenGL...
Started by Matt on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Take ....
AMD does even provide the specification up to the HD4000 series at the moment .
Yes they do.
The GPU instructions are executed independent from the CPU instructions.
Yes, the GPU have their own proprietrary instruction sets.
|
Ask your Facebook Friends
|
Is there CIL instruction to exchange the first two elements in the stack?
Started by Eric Smith on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Looking at a list of CIL instructions there doesn't appear to be a single instruction that exchanges....
However, using stloc , pop , and ldloc , you should be able to accomplish your exchange .
There is no single instruction exchange.
|
|
Hi Does iphone processor ARMV6 supports MMX instructions?
Started by Manish on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
ARMs are a bit configurable....
The iPhone uses an ARM processor so you can't use MMX .
MMX is a SIMD instruction set for x86.
Looks like ARMV6 has a SIMD unit of some kind.. .
Possibly helpful link: ARM Processor Instruction Set Architecture .
|
|
If the program counter points to the address of the next instruction to be executed, what do frame pointers do?
Answer Snippets (Read the full thread at stackoverflow):
This is very implementation dependent (and more....
The point is that the frame pointer is fixed during the life of a method while the stack pointer could move during execution .
Usually the return address (but sometimes just past last argument, for example) .
|
|
This is definitely obsessive, but I am fascinated by how cleverly the compiler translates C code into machine instructions. Since I am a little fuzzy on some instructions, it would be helpful if I could watch the operation of a compiled program at the...
Started by gary on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Ooops, didn't check closely enough - Step Into w/Option (Cmd-Opt... .
Then use Run/Step into(over) instruction to step in assembly.
Wait till you hit a breakpoint.
In the Debugger window, enable assembly: Run/Debugger display/Source and disassembly .
|
|
Is Commit a DML instruction in PL\SQL?
Started by Lucas on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://www.orafaq.com/faq/what_are_the_difference_between_ddl_dml_and_dcl_commands....
Http://www.orafaq.com/faq/what_are_the_difference_between_ddl_dml_and_dcl_commands
No, it's a transaction control (TCL) statement, not a data manipulation (DML) statement .
|
|
What kind of scenarios can XSL processing instructions be used or applied? When is it good or bad to use them?
Clean slate here, I don't have a good handle on this particular element.
Example from w3schools:
<xsl:processing-instruction name="process...
Started by objektivs on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Check the XSLT spec for more....
I myself have never actually found a use for them, so if you don't understand them, you probably don't need 'em .
Processing instructions let you insert things like <?php ?> or <?xml ?> into the output code.
|
|
Does anyone know of a web site where I can find a list of 32-bit MIPS instructions/opcodes, with the following features:
Clearly distinguishes between real opcodes and assembly-language macros Describes the instruction behavior including differences depending...
Started by Dan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Table 8.2 lists each opcode and expected behavior....
I have the first edition of the book, the second edition is now current .
I can only partially answer the question: I'd recommend See MIPS Run by Dominic Sweetman, if you're not already referring to it .
|