ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
19 мая
254105 Топик полностью
vvb_ (17.05.2011 12:47, просмотров: 1) ответил Vit на Не нахожу описания #pragma weak в IAR EW430 v 5.20. Ткните, плз, где есть
Из MULTI#pragma weak foo Defines foo as a weak symbol. This #pragma may be used in either of the following ways:If foo is declared as an external reference in filename:#pragma weak fooextern int foo;and foo is not defined in any other file, then the address of foo is set to zero (or, in the case of projects that use PIC or PID, 0 plus the adjustment for the text or data segment offset). This will prevent an undefined symbol linker error.If foo is defined in filename:#pragma weak fooint foo = 1;and a definition of foo appears in any other file, then that other definition will have priority, and the definition in filename will be treated as if it were an external reference.