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–7_near,_internal_external_atint _X myvar _at(0x100);int _X *p;int _Y *g;g = p;// pointer to int in X memory// pointer to int in Y memory// the compiler issues a warningextern int _X foo; //extern int in X memoryint _Y foo;//int in Y memoryint _Y example; /* define an int in Y memory */example = 2; /* assign example */move #2,X0move X0,Y:example• • • • • • • •

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

Saved successfully!

Ooh no, something went wrong!