Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform


Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | Heap size definition using DSP/BIOS configuration tool or using linker options?

There are 2 messages in this thread.

You are currently looking at messages 0 to 2.


Heap size definition using DSP/BIOS configuration tool or using linker options? - rose - 2004-09-19 23:28:00

Hi, all,

Who can tell me the difference between defining Heap size using
DSP/BIOS configuration tool and using linker option "-heap"? If both
are defined, which is the valid one?

The same question also comes to me when talking about "stack size".

Thanks for any comments and suggestion!

Rose
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Heap size definition using DSP/BIOS configuration tool or using linker options? - Brad Griffis - 2004-09-21 23:06:00



I believe that both heaps are "valid."  Typically if you were NOT using BIOS 
then you would declare your heap in the linker options so that it would 
allocate some space for it.  You would then use malloc() in order to use 
memory from that heap.  With BIOS it is typical to declare your heaps in 
BIOS by checking the "create a heap in this memory" box.  You would then use 
MEM_alloc() to use memory from the various heaps.  I suppose you could use 
both simultaneously but I think it makes more sense to just pick one or the 
other.  If you use both then the linker will include the code for both 
functions in your .out file which will just unnecessarily bloat your memory 
usage.

Brad

"rose" <a...@263.net> wrote in message 
news:6...@posting.google.com...
> Hi, all,
>
> Who can tell me the difference between defining Heap size using
> DSP/BIOS configuration tool and using linker option "-heap"? If both
> are defined, which is the valid one?
>
> The same question also comes to me when talking about "stack size".
>
> Thanks for any comments and suggestion!
>
> Rose 


______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.