arduino sketch to avrStudio??

so im trying to upload this sketch to a atmega8 via parallel port without bootloader.

int pins[] = {7,6,5,4,3,2};	// an array of pin numbers
int col_len = 6;		// column lenght

// customizable parameter
int timer1 =2;			// time between columns
int timer2 = 10;		// time between frames
int timer3 = 22;			// time between drawings
int frame_len = 5;		// frame length
int frame_num = 5;		// number of frames
// data corresponding to the image to be displayed
int data[] = {1,1,1,1,1,1, 0,0,1,0,0,0, 0,0,1,0,0,0, 0,0,1,0,0,0, 1,1,1,1,1,1, 1,1,1,1,1,1, 1,0,0,1,0,1, 1,0,0,1,0,1, 1,0,0,1,0,1, 1,0,0,1,0,1, 1,1,1,1,1,1, 0,0,0,0,0,1, 0,0,0,0,0,1, 0,0,0,0,0,1, 0,0,0,0,0,1, 1,1,1,1,1,1, 0,0,0,0,0,1, 0,0,0,0,0,1, 0,0,0,0,0,1, 0,0,0,0,0,1, 0,1,1,1,1,0, 1,0,0,0,0,1, 1,0,0,0,0,1, 1,0,0,0,0,1, 0,1,1,1,1,0}; 

void setup()
{
	int i;
	for (i = 0; i < col_len; i++)
		pinMode(pins[i], OUTPUT);	// set each pin as an output
}

void loop()
{
	int a,b,c;
	
	// go through all data for all columns in each frame.
	for (a = 0; a < frame_num; a++)
	{
		for (b = 0; b < frame_len; b++)
		{
			for (c = 0; c < col_len; c++)
			{
				if (data[a*frame_len*col_len + b*col_len + c] == 0) {digitalWrite(pins[c], LOW);}
				else {digitalWrite(pins[c], HIGH);}
			}
			delay(timer1);
		}
		for (c = 0; c < col_len; c++)
		{digitalWrite(pins[c], LOW);}
		delay(timer2);
	}
	delay(timer3);
}

i compile the sketch and then i locate and burn the .hex file but it doesnt work, i did get the blink sketch to work though in this way.
can some one please convert this so i can copy paste it into avrstudio then compile it there.

Thanks in advance.