> In article <f2sl6q.1o4.1@stefan.msgid.phost.de>, Stefan Reuther
> <stefan.news@arcor.de> writes
> > Chris Hills wrote:
> > > /* "keil" to "iar" will need some thinking about */
> >
> > No problem.
> >
> > #include <stdio.h>
> > int main() {
> > char x[6];
> > fgets(x, 6, stdin);
> > printf("%c%c%c\n", x[2], x[1] - 4, x[0]+x[3]-x[1]);
> > return 0;
> > }
> >
> > Even works for upper-case :-)
>
>
> Any one want to try "windriver" to" iar"? :-)
#include <stdio.h>
int main() {
char x[11];
char *p = &x[1];
fgets(x, 11, stdin);
printf("%c", *p);
p += 2;
printf("%c", *p - 3);
p += 5;
printf("%c\n", *p);
return 0;
}
--
John B
Reply by Tom Lucas●May 21, 20072007-05-21
"lzh08" <cppcpldfpga@gmail.com> wrote in message
news:1179732737.322113.259380@b40g2000prd.googlegroups.com...
> who could tell me?thx
Without knowing what you want to convert then no-one can help you. If
you've written ANSI C then everything will run just dandy. However, if
you've used compiler extensions then you need to find the appropriate
extensions under IAR. Their support people are very helpful (at a price)
and respond quickly.
If you write code that conforms to standards and liberally document the
places where it doesn't then you won't get this problem in the future.
Reply by Chris Hills●May 21, 20072007-05-21
In article <f2sl6q.1o4.1@stefan.msgid.phost.de>, Stefan Reuther
<stefan.news@arcor.de> writes
>Chris Hills wrote:
>> /* "keil" to "iar" will need some thinking about */
>
>No problem.
>
>#include <stdio.h>
>int main() {
> char x[6];
> fgets(x, 6, stdin);
> printf("%c%c%c\n", x[2], x[1] - 4, x[0]+x[3]-x[1]);
> return 0;
>}
>
>Even works for upper-case :-)
Any one want to try "windriver" to" iar"? :-)
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ chris@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply by Stefan Reuther●May 21, 20072007-05-21
Chris Hills wrote:
> /* "keil" to "iar" will need some thinking about */
No problem.
#include <stdio.h>
int main() {
char x[6];
fgets(x, 6, stdin);
printf("%c%c%c\n", x[2], x[1] - 4, x[0]+x[3]-x[1]);
return 0;
}
Even works for upper-case :-)
Stefan
Reply by Chris Hills●May 21, 20072007-05-21
In article <43n8i4-p4o.ln1@fenelon.com>, Pete Fenelon
<pete@stratos.fenelon.com> writes
>Vladimir Vassilevsky <antispam_bogus@hotmail.com> wrote:
>>
>>
>> lzh08 wrote:
>>> who could tell me?thx
>>>
>>
>> ADS is RF design suit.
>
>Nope. ARM Developer Suite. ;)
>
I think he knows that. He is just being perverse like the rest of us.
Anyway I provided a hard coded solution in C using EWB :-)
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ chris@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply by Chris Hills●May 21, 20072007-05-21
In article <h8RSzJGOTaUGFA1z@phaedsys.demon.co.uk>, Chris Hills
<chris@phaedsys.org> writes
/* how to convert ads to iar? */
/* the invoice is in the post */
/* next converting ghs to iar */
/* "keil" to "iar" will need some thinking about */
/* Some one else can do "windriver" to "iar" :-) */
#include <stdio.h>
int main(void )
{
char one = 'a';
char two ='d';
char three ='s';
char four = 8;
char five = 3;
char six =1;
printf("%c %c %c \n", one, two, three);
one = one + four;
two = two -five;
three = three - six;
printf("%c %c %c \n", one, two, three);
return 0;
}
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ chris@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply by Pete Fenelon●May 21, 20072007-05-21
Vladimir Vassilevsky <antispam_bogus@hotmail.com> wrote:
>
>
> lzh08 wrote:
>> who could tell me?thx
>>
>
> ADS is RF design suit.
Nope. ARM Developer Suite. ;)
pete
--
pete@fenelon.com "how many clever men have called the sun a fool?"
Reply by Chris Hills●May 21, 20072007-05-21
In article <1179732737.322113.259380@b40g2000prd.googlegroups.com>,
lzh08 <cppcpldfpga@gmail.com> writes
>who could tell me?thx
>
Run this.... not pretty but it converts ads to iar ! (I even used an IAR
EWB to do it :-)
#include <stdio.h>
int main(void )
{
char one = 'a';
char two ='d';
char three ='s';
char four = 8;
char five = 3;
char six =1;
printf("%c %c %c \n", one, two, three);
one = one + four;
two = two -five;
three = three - six;
printf("%c %c %c \n", one, two, three);
return 0;
}
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ chris@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply by Vladimir Vassilevsky●May 21, 20072007-05-21
lzh08 wrote:
> who could tell me?thx
>
ADS is RF design suit.
IAR is embedded workbench.
It wouldn't be too simple to make a conversion...
Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant
http://www.abvolt.com