[an error occurred while processing this directive]
Ответ: Обычно это указывается в документации на C в разделе с названием типа "Interfacing ‘C’ Programs to Assembler"
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено trainer 16 августа 2002 г. 08:34
В ответ на: ассемблер отправлено Ruben 15 августа 2002 г. 15:33

Например для RIDE:

The names for functions with register parameters and reentrant attributes are modified slightly to
avoid run-time errors. The following examples list deviations from the standard segment names.
· void func (void) will generate the symbol FUNC. Names of functions that have no
arguments or whose arguments are not passed in registers are transferred to the object file
without any changes. The function name is converted to uppercase.
· void func1 (char) will generate the symbol _FUNC1. For functions with arguments passed
in registers, the underscore character (_) is prefixed to the function name. This identifies
those functions that transfer arguments in CPU registers.
· void func2 (void) reentrant will generate the symbol ?FUNC2. For functions that are
reentrant, the question mark character (?) is prefixed to the function name. This is used to
identify reentrant function.

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

Ответы



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

E-mail: info@telesys.ru