skybuck

Pipeline simulation video/tutorial ?

Discussion created by skybuck on Dec 20, 2008
Latest reply on Jan 4, 2010 by maa1
CodeAnalyst

Hello,

I have Visual Studio 2008.

I have Latest CodeAnalyst tool integrated.

How can I do a pipeline simulation ? I tried all kinds of things... it's too confusing and the tutorials are out of date.

(Ok the problem was... I disabled the debug information because it gave some compiler directive command line switch conflict like /ZI and something... but now it's fixed)

I have simple test code like so:

 

 

// TestProject.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include
#include

int _tmain(int argc, _TCHAR* argv[])
{
    printf("program started \n");

    int vIndex;
    int vCount;
   
    int vInput;
    int vCalculation;
    int vOutput;   

    vInput = 0;

    vCalculation = vInput;

    vCount = 1000000000;   
    for (vIndex=0; vIndex < vCount; vIndex++)
    {
        vCalculation = vCalculation + 5;
   
        if (vCalculation > 1000)
        {
            vCalculation = vCalculation + 3;       
        } else
        {
            vCalculation = vCalculation + 1;
        }
    }
   
    vOutput = vCalculation;
   
    printf("output: %d \n", vOutput );
   
    printf("program finished \n");
   
    getchar();
 return 0;
}

Some youtube video's or so would be nice ?

 

 





Outcomes