|
From: | Rolf Ebert |
Subject: | Re: [avr-gcc-list] Add builtins in avr target. |
Date: | Sat, 05 Apr 2008 16:06:19 +0200 |
User-agent: | Thunderbird 2.0.0.12 (Windows/20080213) |
Anatoly Sokolov schrieb:
This patch add '__builtin_avr_swap', '__builtin_avr_sei' and '__builtin_avr_cli' builtins in avr backend. It will allow to use 'SWAP', 'SEI' and 'CLI' instructions, without use inline assembly. I wish to add: 1. builtins for 'SLEEP' and 'WDR' instructions; 2. builtins for 'FMUL*' instructions; 3. builtin similarly to IAR '__delay_cycles'; 4. builtin for 'DES' xmega instruction. Your suggestions?
If you add these built-ins I'd need your help to teach the Ada F-E how to use them. I am quite OK with the current solution. It seems more flexible to me if I can modify the code at the library level and don't have to resort to compiler patches.
Rolf
[Prev in Thread] | Current Thread | [Next in Thread] |