Dror Maydan and Steve Leibson, Tensilica
10/10/2006 9:00 AM EDT
Program developers of embedded processor cores within System-onChips (SoCs) want their code to run fast to lessen processor-operating frequency, consume little memory and reduce memory cost. Two key factors affecting the design team’s ability to meet such goals are the compiler’s code-optimizing efficiency and source-code programming styles.

Compilers consist of front and back-ends. The front-end is for syntactic and semantic processing. The back-end performs general optimizations, code generation and further optimization for specific target processor. Good back-ends rely on multilevel intermediate representations (IRs). Continue reading »

 

Язык C++ вслед за С позволяет писать функции с переменным числом параметров. Одним из простых примеров может служить функция, вычисляющая среднее арифметическое своих аргументов. Другой уже классический пример — функция сцепления произвольного количества строк, которая является естественным обобщением функции сцепления двух строк.
Переменный список параметров задается в заголовке функции многоточием:

int f()

Continue reading »

© 2011 ADTL Blog Suffusion theme by Sayontan Sinha