468,457 Members | 1,566 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,457 developers. It's quick & easy.

pragma directive

wat is use of pragma directive in embedded sys ??
Jan 28 '08 #1
2 3586
al**********@gmail.com wrote:
wat is use of pragma directive in embedded sys ??
From n1256:

6.10.6 Pragma directive
Semantics

1 A preprocessing directive of the form

# pragma pp-tokensopt new-line

where the preprocessing token STDC does not immediately follow pragma in
the directive (prior to any macro replacement)152) causes the
implementation to behave in an implementation-defined manner. The
behavior might cause translation to fail or cause the
translator or the resulting program to behave in a non-conforming
manner. Any such pragma that is not recognized by the implementation is
ignored.

2 If the preprocessing token STDC does immediately follow pragma in the
directive (prior to any macro replacement), then no macro replacement
is performed on the directive, and the directive shall have one of the
following forms153) whose meanings are described elsewhere:

#pragma STDC FP_CONTRACT on-off-switch
#pragma STDC FENV_ACCESS on-off-switch
#pragma STDC CX_LIMITED_RANGE on-off-switch

on-off-switch: one of
ON OFF DEFAULT

Jan 28 '08 #2
<al**********@gmail.comwrote in message
news:e7**********************************@v67g2000 hse.googlegroups.com...
wat is use of pragma directive in embedded sys ??
some are:
-control over the "section" into which the compiler places the code and/or
data
-control over the "addressing mode" used for accessing the data
-control over floating point
-control over enabling/disabling of certain optimizations etc
Jan 28 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jacob Jensen | last post: by
6 posts views Thread by Shri | last post: by
6 posts views Thread by Stefan Slapeta | last post: by
11 posts views Thread by ramu | last post: by
15 posts views Thread by muttaa | last post: by
8 posts views Thread by rwen2012 | last post: by
8 posts views Thread by Steve Richter | last post: by
26 posts views Thread by Rick | last post: by
debasisdas
reply views Thread by debasisdas | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.