Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IAR- 90S complier General Question.

0 views
Skip to first unread message

p_...@hotmail.com

unread,
Apr 23, 1999, 3:00:00 AM4/23/99
to
I'm now moving from 51 series to AVR 90S series and the complier changed to
IAR-90S. I have the following question about the complier.

1). I write a few line, just toggle the port output with delay (software
delay loop). The output file make a 200 more bytes and over 100byte ram.
Using Optim. Size,9. option. How can I min. the memory used (both rom & ram)
?

2). Does this complier can generate a very small code compared with Keil 51 ?

3). Also, this complier cant detect the dongle very well . Does anyone have
same experience ?


Pls give me some advises to min. the startup code and point me out how to
write a smaller code prog. ( I can write a very comp. code with Keil 51).


best regards,
p_en.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

Geir Atle Ward

unread,
Apr 23, 1999, 3:00:00 AM4/23/99
to

p_...@hotmail.com skrev i meldingen <7fppe5$mkj$1...@nnrp1.dejanews.com>...

>I'm now moving from 51 series to AVR 90S series and the complier changed to
>IAR-90S. I have the following question about the complier.
>
>1). I write a few line, just toggle the port output with delay (software
>delay loop). The output file make a 200 more bytes and over 100byte ram.
>Using Optim. Size,9. option. How can I min. the memory used (both rom &
ram)
>?
>
>2). Does this complier can generate a very small code compared with Keil
51 ?
>

>3). Also, this complier cant detect the dongle very well . Does anyone have
>same experience ?
>

If you're using Win95/98, add SET SSI_ACT=10,10,20 to autoexec.bat. If it
doesn't solv the problem, experiment with the last number (eg. try increase
it with 10 at a time). More info can be found in the readme file for the
compiler.

ga

p_...@hotmail.com

unread,
Apr 24, 1999, 3:00:00 AM4/24/99
to
In article <280U2.303$qs2....@news1.online.no>,

"Geir Atle Ward" <gaw...@online.no> wrote:
>

> >3). Also, this complier cant detect the dongle very well . Does anyone have
> >same experience ?
> >
>
> If you're using Win95/98, add SET SSI_ACT=10,10,20 to autoexec.bat. If it
> doesn't solv the problem, experiment with the last number (eg. try increase
> it with 10 at a time). More info can be found in the readme file for the
> compiler.
>
> ga

After I totally reinstall the 'Clear' Win95. It works OK but not fine. Now, I
add the line, it comes better.

Thank you for your advise.

p_en

p_...@hotmail.com

unread,
Apr 28, 1999, 3:00:00 AM4/28/99
to

> After I totally reinstall the 'Clear' Win95. It works OK but not fine. Now, I
> add the line, it comes better.
>
> Thank you for your advise.
>
> p_en
>


Today, it fails again. It reports can found hardware lock.. Try to install at
other comp. --> same bad result.

Also, how can I min. the startup code ? too large. cos of original code
writting for 89s8515 need to change for 90s8515. I'm afarid that it does not
have enough space. (old prog. 8K fully used).

best regards,

p_en.

Andreas Lifvendahl

unread,
Apr 29, 1999, 3:00:00 AM4/29/99
to

Hi,

I'll try to give you some short answers below;

>1). I write a few line, just toggle the port output with delay (software
>delay loop). The output file make a 200 more bytes and over 100byte ram.
>Using Optim. Size,9. option. How can I min. the memory used (both rom &
ram)

Without looking at your code, I would guess that there is a lot to gain by
modifying your initialization code, in the cstartup file. Remove the
initialization that are not needed by your application.

>
>2). Does this complier can generate a very small code compared with Keil
51 ?

Yes, our experience is that the AVR together with the IAR C compiler
generates very efficient code. In fact, the AVR was designed by Atmel with
help from IAR, to make the architecture suitable for high level language
programming. Atmel has performed a serie of benchmarks, comparing the AVR
with the 8051 and a handful of other chips. The result can be found at:
http://www.atmel.com/atmel/acrobat/doc1292.pdf.

Note, these benchmarks are made using the IAR 8051 compiler. How it compares
to the Keil compiler I will not comment to much upon - with good reasons you
could question my objectivity ;-). Although I think I can safely say that
both the Keil and IAR compilers have a reputation on the market of being of
high quality and producing efficient code.


>
>3). Also, this complier cant detect the dongle very well . Does anyone have
>same experience ?

Have you tried to contact your reseller or your local IAR office? They
should be able to help you furhter. There is also a section at the IAR web
site giving some hints;
http://www.iar.com/technical_support/h1v3_faq.htm#1.7

I hope this will help you.

Regards,

Andreas Lifvendahl
IAR Systems

p_...@hotmail.com

unread,
May 3, 1999, 3:00:00 AM5/3/99
to

>
> Regards,
>
> Andreas Lifvendahl
> IAR Systems
>


Thanks a lot.

Now, I solved the dongle problem.It was demaged.
Next, I have changed the old 89s8252 source file to AVR. The IAR can generate
a smaller code about 10%.
The startup code size problem was neglected cos of my boss ...*_*

best regards,

p_en

0 new messages