1646 views|0 replies

1140

Posts

0

Resources
The OP
 

Usage of pragma in dsp [Copy link]

#pragma DATA_SECTION(function name or global variable name, "user-defined segment name in data space"); #pragma CODE_SECTION(function name or global variable name, "user-defined segment name in program space"); Cannot be declared in the function body. Must be declared before definition and use. #pragma can prevent optimization of uncalled functions. #pragma DATA_ALIGN(symbol, constant) The function of the instruction is to align symbol to the column boundary pointed to by constant. For example, #pragma DATA_ALIGN(rxdata_stream, 128) makes the last 7 bits of the address of rxdata_stream 0 (binary address), which is 128-byte alignment. The purpose of alignment is generally to read and write external memory for CACHE. If a CACHE line is 128 bytes. In this way, if the data is 128-byte aligned, then it is enough to use only one CACHE line to fetch a 128-byte data. #prgma DATA_ALIGN(efd, 8) When compiling, the address of the efd variable will be arranged at an 8-byte aligned position, that is, the lower 3 bits of the efd address will be 0.

This post is from DSP and ARM Processors
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list