Next, write the code so loop doesn't get execute - that add's some time while the 'hidden' main() { } gets executed to call void loop(){ } again:
void loop(){
while(;){ // while condition is true, do this stuff - may be a better way to do this
// your code
}
}