how to convert ads to iar?

Loading thread data ...

I'm sure lots of consultants could, for the usual hourly consideration. How much are you paying?

best regards Pete

--
pete@fenelon.com "how many clever men have called the sun a fool?"
Reply to
Pete Fenelon

In article , lzh08 writes

Lots of people. I could. Why should I?

Try

char one = 'a'; char two ='d'; char three ='s'; char four = 8; char five = 3; char six =1;

one = 0ne + four; two = two -five; three = three - six;

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England     /\/\/\/\/
/\/\/ chris@phaedsys.org      www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply to
Chris Hills

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

formatting link

Reply to
Vladimir Vassilevsky

In article , lzh08 writes

Run this.... not pretty but it converts ads to iar ! (I even used an IAR EWB to do it :-)

#include

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 to
Chris Hills

Nope. ARM Developer Suite. ;)

pete

--
pete@fenelon.com "how many clever men have called the sun a fool?"
Reply to
Pete Fenelon

In article , Chris Hills 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

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 to
Chris Hills

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 to
Chris Hills

No problem.

#include 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 to
Stefan Reuther

Any one want to try "windriver" to" iar"? :-)

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England     /\/\/\/\/
/\/\/ chris@phaedsys.org      www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply to
Chris Hills

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 to
Tom Lucas

#include 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 to
John B

... snip ...

Fails if the char. set is ebcdic (or some others) :-)

--
 
 
 
 
                        cbfalconer at maineline dot net
Reply to
CBFalconer

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.