Hi,
why it is giving error??
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.83
Copyright (C) 2011 Microchip Technology Inc.
(1273) Omniscient Code Generation not available in Lite mode (warning)
Internal error - no stack allocated to function
********** Build failed! **********
Code:
#include <htc.h>
#include <math.h>
#include <stdio.h>
__CONFIG(LVP_OFF & BOREN_OFF & PWRTE_ON & WDTE_OFF & FOSC_HS);
#define _XTAL_FREQ 20000000
void main (void) {
float pi = 3.14;
float sine[10];
while(1){
for(int i=0;i<=10;i++) {
sine[i]= sin(pi/180 * i);
}
}
}