11.07.2015 Views

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Pragma directivesdatasegSyntax#pragma dataseg=[__memoryattribute ]{SEGMENT_NAME|default}Parameters__memoryattributeSEGMENT_NAMEdefaultAn optional memory attribute denoting in what memory thesegment will be placed; if not specified, default memory is used.A user-defined segment name; cannot be a segment namepredefined for use by the compiler and linker.Uses the default segment.DescriptionExampleUse this pragma directive to place variables in a named segment. The segment namecannot be a segment name predefined for use by the compiler and linker. The variablewill not be initialized at startup, and can for this reason not have an initializer, whichmeans it must be declared __no_init. The setting remains active until you turn it offagain with the #pragma constseg=default directive.#pragma dataseg=__data20 MY_SEGMENT__no_init char myBuffer[1000];#pragma dataseg=defaultdiag_defaultSyntax#pragma diag_default=tag[,tag,...]ParameterstagThe number of a diagnostic message, for example the messagenumber Pe117DescriptionUse this pragma directive to change the severity level back to default, or to the severitylevel defined on the command line by using any of the options --diag_error,--diag_remark, --diag_suppress, or --diag_warnings, for the diagnosticmessages specified with the tags.See also Diagnostics, page 136.Part 2. <strong>Compiler</strong> <strong>reference</strong>203

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!