Motorola DSP56800 Guía de usuario Pagina 411

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 446
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 410
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
411Targeting MC56F83xx/DSP5685x Controllers
<sectname>
Identifier by which this user-defined section is referenced in the source.
Listing C.16 Sample Code - pragma define_section and pragma section
/* 1. Define the section */
#pragma define_section mysection ".mysection.data" RW
/* 2. Specify the data to be put into the section. */
#pragma section mysection begin
int a[10] = {'0','1','2','3','4','5','6','7','8','9'};
int b[10];
#pragma section mysection end
int main(void) {
int i;
for (i=0;i<10;i++)
b[i]=a[i];
}
/* 3. In the linker command file, add “.mysection.data” in the “.data
sections area of the linker command file by inserting the following
line:
* (.mysection.data)
*/
Related Pragma
define_section
simple_prepdump
Controls the suppression of comments in preprocessor dumps.
Prototype
#pragma simple_prepdump on | off | reset
Vista de pagina 410
1 2 ... 406 407 408 409 410 411 412 413 414 415 416 ... 445 446

Comentarios a estos manuales

Sin comentarios