cpu-cycles Questions
5
In the book Computer Systems: A Programmer's Perspective, the Exercise 5.5 shows a piece of code to compute the value of a polynomial
double poly(double a[], double x, int degree)
{
long in...
Trici asked 9/2, 2013 at 9:30
3
Solved
Specifically is:
mov %eax, %ds
Slower than
mov %eax, %ebx
Or are they the same speed. I've researched online, but have been unable to find a definitive answer.
I'm not sure if this is a sill...
Ovalle asked 3/7, 2018 at 22:56
3
What's the relationship between the real CPU frequency and the clock_t (the unit is clock tick) in C?
Let's say I have the below piece of C code which measures the time that CPU consumed for runnin...
Bailiwick asked 9/1, 2022 at 7:39
4
I am trying to find a reference for approximately how many CPU cycles various operations require.
I don't need exact numbers (as this is going to vary between CPUs) but I'd like something relative...
Rainband asked 23/4, 2010 at 22:50
2
Solved
I have been reading a book about the Computer's Processor. And I came across some of the terms like clock Ticks, clock Cycle and clock Speed that I am finding very difficult to understand. I ...
Edmonds asked 27/4, 2017 at 8:1
1
Solved
The task is for architecture ColdFire processor MCF5271:
I don't understand how many and what size cycles will be needed to perform a longword transfer to the CPU, or word transfers. I'm reading...
Roundy asked 17/4, 2018 at 15:38
5
I heard there is Intel book online which describes the CPU cycles needed for a specific assembly instruction, but I can not find it out (after trying hard). Could anyone show me how to find CPU cyc...
Roundsman asked 28/3, 2009 at 12:46
3
Solved
I am planning on creating a Sega Master System emulator over the next few months, as a hobby project in Java (I know it isn't the best language for this but I find it very comfortable to work in, a...
Gunsel asked 19/8, 2011 at 14:21
10
Solved
I have a RHEL box that I need to put under a moderate and variable amount of CPU load (50%-75%).
What is the best way to go about this? Is there a program that can do this that I am not aware of? ...
Geum asked 26/9, 2008 at 20:18
4
Solved
The Intel manuals for the RDTSC instruction warn that out of order execution can change when RDTSC is actually executed, so they recommend inserting a CPUID instruction in front of it because CPUID...
Farnesol asked 22/8, 2012 at 2:45
3
Solved
What is the difference in CPU cycles (or, in essence, in 'speed') between
x /= y;
and
#include <cmath>
x = sqrt(y);
EDIT: I know the operations aren't equivalent, I'm just arbitrari...
Shaver asked 30/7, 2011 at 16:9
1
Solved
Taken from this SO thread, this piece of code calculates the number of CPU cycles elapsed running code between lines //1 and //2.
$ cat cyc.c
#include<stdio.h>
static __inline__ unsigned l...
Escalante asked 9/10, 2010 at 22:22
2
Solved
I am using an embedded RISC processor. There is one basic thing I have a problem figuring out.
The CPU manual clearly states that the instruction ld r1, [p1] (in C: r1 = *p1) takes one cycle. Size...
Osmometer asked 10/10, 2009 at 1:16
5
Solved
In a Swing app a method should continue only after user enters a correct answer. The correct answer is stored in a String with user answer being set by a listener to another String. So, the code is...
Tuinal asked 2/12, 2008 at 14:12
5
Solved
In Win32, is there any way to get a unique cpu cycle count or something similar that would be uniform for multiple processes/languages/systems/etc.
I'm creating some log files, but have to produce...
Enyo asked 26/9, 2008 at 11:44
1
© 2022 - 2024 — McMap. All rights reserved.