Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CodeVision AVR 1.25.7, user manual.pdf
Скачиваний:
236
Добавлен:
12.08.2013
Размер:
1.22 Mб
Скачать

CodeVisionAVR

3.21 Hints

In order to decrease code size and improve the execution speed, you must apply the following rules:

If possible use unsigned variables;

Use the smallest data type possible, i.e. bit and unsigned char;

The size of the bit variables, allocated to the program in the Project|Configure|C Compiler|Code Generation|Bit Variables Size list box, should be as low as possible, in order to free registers for allocation to other global variables;

If possible use the TINY memory model;

Always store constant strings in FLASH by using the flash keyword;

After finishing debugging your program, compile it again with the Stack End Markers option disabled.

3.22 Limitations

This version of the CodeVisionAVR C compiler has the following limitations:

arrays of structures or unions can have only one dimension

for the EVALUATION version the size of the compiled code is limited;

the Philips PCF8563, Philips PCF8583, Maxim/Dallas Semiconductor DS1302, DS1307, 4x40 character LCD functions are not available in the EVALUATION version.

© 1998-2007 HP InfoTech S.R.L.

Page 110