[an error occurred while processing this directive] [an error occurred while processing this directive]
Честно признаться т. Keil меня шибко удивил...
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Kuka 08 декабря 2001 г. 11:53
В ответ на: Ответ: отправлено Я 08 декабря 2001 г. 10:17

Вот раздел из хелпа:

Absolute Variable Location
Variables may be located at absolute memory locations in your C program source modules using the _at_ keyword. The usage for this feature is:
memory_space type variable_name _at_ constant; where:
memory_space is the memory space for the variable. If missing from the declaration, the default memory space is used. Refer to
“Memory Models” on page 95 for more information about the default
memory space.
type is the variable type.

-> т.е. не исключает code char array[x] _at_ XXXX;

variable_name is the variable name.
constant is the address at which to locate the variable.
The absolute address following _at_ must conform to the physical boundaries of the memory space for the variable. Cx51 checks for invalid address specifications.

А дальше начинается сказка:
The following restrictions apply to absolute variable location:
1. Absolute variables cannot be initialized.

2. Functions and variables of type bit cannot be located at an absolute address.

Чесно слово без коментариев...

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru