13.07.2015 Views

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Language Implementation 3–25constint i = 100; /* 1 word in P memory and1 word in X memory */_P int j = 3; /* 2 words in P memory */char *t = ”TEXT”; /* 6 words in P memory and6 words in X memory:1 word for p,5 words for ”TEXT” */_P char t[] = ”HELP”; /* 10 words in P memory */_X char c = ’a’; /* 1 word in P memory and1 word in X memory */const int k = 400; /* 1 word in X memory */volatilevolatileconst volatile _X int real_time_clock _at(0x1200);/* define a memory mapped real time clockregister;it is read–only (const);read operations must access the real memorylocation (volatile)*/• • • • • • • •

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

Saved successfully!

Ooh no, something went wrong!