реклама на сайте
подробности

 
 
> работа в IAR, С++ в IAR
froakch
сообщение Nov 12 2004, 12:59
Сообщение #1





Группа: Новичок
Сообщений: 5
Регистрация: 4-11-04
Пользователь №: 1 037



Как встроить ассембл. код в C-ую программу в IAR?
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
lamerok
сообщение Nov 12 2004, 14:24
Сообщение #2


Частый гость
**

Группа: Свой
Сообщений: 135
Регистрация: 22-06-04
Из: Челябинск
Пользователь №: 88



А, вообще все написано в доке
MSP430 IAR C/EC++ Compiler
Reference Guide
for Texas Instruments’
MSP430 Microcontroller Family
Сразу с рекомендациями, не использовать его так -)))

INLINE ASSEMBLER
It is possible to insert assembler code into a C module. The asm keyword assembles and
inserts the supplied assembler statement in-line, for example:
asm("MOV.W R4,R7");
Note: The asm keyword reduces the compiler’s ability to optimize the code. We
recommend the use of modules written in assembler language instead of inline
assembler, since the function call to an assembler routine causes less performance
reduction.
Go to the top of the page
 
+Quote Post



Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 3rd August 2025 - 06:44
Рейтинг@Mail.ru


Страница сгенерированна за 0.01364 секунд с 7
ELECTRONIX ©2004-2016