search for: global_stack_size

Displaying 6 results from an estimated 6 matches for "global_stack_size".

2010 Jun 07
1
GLOBAL_STACK_SIZE
I am having trouble understanding the stack allocation scheme when using a C55xx device. From what I can tell, the GLOBAL_STACK_SIZE is set in arch.h to 100,000 bytes (when using FIXED_POINT), which is then used in the ALLOC_STACK macro found in stack_alloc.h. This macro seems to say, if global_stack==0, then call celt_alloc_scratch, found in os_support.h, which in turn attempts to allocate (using calloc) 100,000 bytes for the g...
2010 Dec 01
1
stack + heap sizes
...ttings, like frame_size, bitrate, complexity, etc. ? ? at least in our configuration I find these requirements:? ?- native stack: < 2.1kB (enc or dec) measured by RealView Profiler ?- heap: (summing up the celt_alloc calls): ???? mode_create: 2430 ???? enc_create: 10284 ???? dec_create: 17568 ?- GLOBAL_STACK_SIZE: ???? not sure! (default = 100k ???) ???? 2k is not enough, 5k is ok. ? our config: ?- version = 0.9.1 ?- ARM9, FIXED_POINT, DOUBLE_PRECISION ?- f<s> = 48kHz ?- frame_size = 240 (p.ch.) (--> 5ms)? ?- rate = 128 kbit/s (stereo) ?- vbr_rate = 0 ?- prediction = 2 ?- complexity = 10 ? Why do w...
2011 Mar 03
1
fixed point code
...IN32(32767,floor(.5+32768.*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overlap)))); #endif ..... ..... } [2] Usage on global stack memory In "arch.h", there is a definition on the following constant for global processing memory (stack RAM). #define GLOBAL_STACK_SIZE 100000 Then, dynamic RAM is allocated through calloc (GLOBAL_STACK_SIZE, 1), which means that 100,000 bytes of RAM is being allocated for decoder processing. Do we really need 100KB RAM for decoder processing (whatever called ... processing RAM or stack RAM)? What's peak R/W RAM requirement o...
2018 Dec 14
1
ask some questions about opus
...ave encountered some problems on the way of learning opus, so I would like to consult you. I found "global_stack" was not released after malloc, and malloc memory was too large.So what I want to ask you is whether "global_stack" malloc can have less memory, since the value "GLOBAL_STACK_SIZE" can be reduced.What's the minimum?My opus only needs the compression function, other functions are not needed. I look forward to hearing from you. Yours faithfully, Annie Cell phone:13428160457 E-Mail:xieyingshen at 126.com xieyingshen1993 -------------- next part -------------- An HT...
2011 Mar 25
1
Another Error For TI C55x C Compiler
...ck Both of these instances are pointing to the code: "ALLOC_STACK; SAVE_STACK;" this has to do with the not using VAR_ARRAYS nor USE_ALLOCA, in this scenario the #define's for ALLOC_STACK and SAVE_STACK are: #define ALLOC_STACK (global_stack = (global_stack==0) ? celt_alloc_scratch(GLOBAL_STACK_SIZE) : global_stack) #define SAVE_STACK char *_saved_stack = global_stack; so obviously, having the executable of ALLOC_STACK prior to SAVE_STACK won't work. not quite sure how to get around this, any ideas? thanks Bob -------------- next part -------------- An HTML attachment was scrubbed... U...
2017 Oct 18
4
Global stack on Cortex-M4
Hi all ! I just learned about the Opus codec and would like to try it out on my NRF52 (Cortex-M4) target.   I've been struggling a bit with the "trival_example.c" setup but repeatedly run into "hard fault" crashes when stepping through the code. Firstly; for a "bare bone" configuration, does the following compiler directives make sense ? UDEFS =