Rules | Recent posts | topic RSS | Search | Register  | Log in

about retarget option..

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS
Author Message
mahimai



Joined: 03 Apr 2008
Posts: 1


Post03 Apr 2008 13:49   about retarget option..

hi..
i am working in arm9 board..
IDE IS keil3 version..
in all sample program..they given the retarget option..
what is the need of that..
reply me
Back to top
ckshivaram



Joined: 21 Apr 2008
Posts: 327
Helped: 22
Location: india


Post13 May 2008 9:30   Re: about retarget option..

Hello there.

Always a retarget option is given so that there are few Ic's in ARM9 fmaily that do not support some feature or some may have a little more feature than the present controller. e.g once ARM 9 is released to the market, after sometime some new feature might be added into the same ARM9 due to lot of demand. but the keil might not have updated it in the software which we use., so they came up with concept of retarget which uses the old features but in case your program is written for some new feature it is taken from retarget and the compilation is done or else the program might not compile and give error that the device do not supprot the feature.

Is it clear,
Back to top
ckshivaram



Joined: 21 Apr 2008
Posts: 327
Helped: 22
Location: india


Post16 May 2008 10:40   Re: about retarget option..

here is explaination with summary
The higher-level input/output, such as the functions fscanf() and fprintf(), and the C++ object std::cout, are not target-dependent. However, the higher-level functions perform input/output by calling lower-level functions that are target-dependent. To retarget input/output, you can either avoid these higher-level functions or redefine the lower-level functions.
You can provide your own implementation of C Library functions that make use of target hardware, and that are automatically linked in to your image in favor of the C library implementations. For example, you might have a peripheral I/O device such as a UART, and you might want to override the library implementation of fputc(), that writes to the debugger console, with one that outputs to the UART. Because this implementation of fputc() is linked in to the final image, the entire printf() family of functions prints out to the
UART.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap