What is the use of pragma directive in C language?

Status
Not open for further replies.

Dhans

Junior Member level 3
Joined
Sep 14, 2005
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,473
need help

hi all

what is the use of pragma directive in c programming language?
 

Re: need help

Not a standard C function, usualy specific instruction for the processor or compiler.
 

need help

it looks like c language used in ICCAVR----a software used in AVR chip programme.
"pragma" use like the following:

#pragma interrupt_handler T0_OVF:10

void T0_OVF( void )
{
........
}


like a declaration before a interrupt handler function

I don't know whether it is the answer you need
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…