Насколько понял, все системные вызовы идут через SWI.
Отправлено
dshabrov (84.21.231.242) 03 марта 2011, г. 16:48
В ответ на: про semihosting читай отправлено
DASM 03 марта 2011, г. 16:23
Насколько понял, все системные вызовы идут через SWI. Для этого нужно Retaget файл. Но если у меня нет ОС, то можно сделать редирект. Не подскажите, как напрямую пользоваться функциями STDIO??
Куда воткнуть #pragma import(__use_no_semihosting_swi)
The standard runtime library is build for the underlying Operating System. All the system calls are coded as SWI's. For example a simple putchar function executes a SWI and activates a low level putchar function from the operating system. If you do not have one, you have to redirect the low level to your own implementation of these functions (in regarget.c). In this case you have to tell the linker not to use the semihosting interface with: #pragma import(__use_no_semihosting_swi)