參數(shù)資料
型號: SC100
廠商: Motorola, Inc.
英文描述: High-Performance Fix-Point DSP Core(高性能定點(diǎn)型數(shù)字信號處理器內(nèi)核)
中文描述: 高性能固定點(diǎn)DSP內(nèi)核(高性能定點(diǎn)型數(shù)字信號處理器內(nèi)核)
文件頁數(shù): 87/212頁
文件大?。?/td> 2672K
代理商: SC100
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁當(dāng)前第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁
Language Features
SC100 C Compiler
3-59
With
if-then-else
constructs,
#pragma profile
can be used to inform the compiler which branch
executes more frequently, and the frequency ratio between the two branches, meaning the number of times
one branch executes in relation to the other.
In Example 3-34, the two
#pragma profile
statements have the values 5 and 50. These values notify
the compiler that the
else
branch section executes 10 times more frequently than the first (implied
then
)
section. When used in this way, the exact
#pragma profile
values are not significant, since they
indicate the frequency ratio, and not the absolute values. In this example, the values 1 and 10 would
convey the same information.
Example 3-34. #pragma profile with frequency ratio
#include <prototype.h>
int energy (short block[], int N)
{
int i;
long int L_tmp = 0;
if ( N>50)
#pragma profile 5
for (i = 0; i < 50; i++)
L_tmp = L_mac (L_tmp, block[i], block[i]);
else
#pragma profile 50
for (i = 0; i < N; i++)
L_tmp = L_mac (L_tmp, block[i], block[i]);
return round (L_tmp);
}
3.4.5.4.2 Defining a loop count
The compiler tries to evaluate the number of times a loop iterates using the static information available. In
cases where this static information is not supplied to the compiler, if you know the upper and lower limits
of a loop, you can use
#pragma
loop_count
to provide these values. Supplying such information, which
cannot always be discerned automatically by the compiler, enables generation of more efficient code.
Similarly, specifying a divider for the loop count enables the optimizer to unroll loops in the most efficient
way. The loop count can be divided by either 2 or 4, corresponding to the number of execution units. You
can also instruct the compiler whether to use the remainder, if there is one following division of the loop
count, to execute the loop an additional number of times.
The syntax of
#pragma
loop_count
is:
#pragma loop_count (lower_bound, upper_bound, [{2/4}, [remainder]]
)
Define a value for lower_bound for the minimum number of times the loop will iterate, and a value for
upper_bound
for the maximum number of times.
The divider parameter is optional. Only the values 2 or 4 may be specified as the divider.
To specify that a remainder should be used for the loop count, specify a value for
remainder
. The
remainder
argument is only valid if a value has been specified for the divider.
相關(guān)PDF資料
PDF描述
SC1100 Geode⑩ Information Appliance On a Chip
SC1100UFH-233 Geode⑩ Information Appliance On a Chip
SC1100UFH-266 Geode⑩ Information Appliance On a Chip
SC1100UFH-300 Geode⑩ Information Appliance On a Chip
SC11372 MOBILE RADIO ANALOG PROCESSOR
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
S-C-100 功能描述:SEA BRAID GREEN .075" X 100' RoHS:否 類別:焊接、脫焊、返修產(chǎn)品 >> 脫焊條,Wick 型 系列:Sea Braid 標(biāo)準(zhǔn)包裝:1 系列:- 類型:免清洗 寬:0.094"(2.39mm) 長度:8.0" (203.2mm) 顏色:黃
SC-100 制造商:SLPOWER 制造商全稱:SL Power Electronics 功能描述:Output voltages from 3.3 V to 48 V
SC1000 功能描述:UPS - 不間斷電源 APC Smart-UPS SC 2U Rackmount/Tower RoHS:否 制造商:Phoenix Contact 功率額定值: 輸出電壓額定值:24 V 出口數(shù)量:2 運(yùn)行時(shí)間(滿載): 運(yùn)行時(shí)間(半載):
SC-1000 制造商:Thomas & Betts 功能描述:SVCE CBL CAP, OVAL W/SPLIT INSUL 制造商:Thomas & Betts 功能描述:Fittings Clamp Steel
SC1000-1 制造商:Thomas & Betts 功能描述:SVCE CBL CAP, OVAL W/SPLIT INSUL,EA