search for: celt_alloc_scratch

Displaying 2 results from an estimated 2 matches for "celt_alloc_scratch".

2010 Jun 07
1
GLOBAL_STACK_SIZE
...ble 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 global stack. However, the *celt_alloc_scratch expects an "int", which in C55x lingo is 16bits (+/-32768). When debugging this macro, a value of -31072 is passed to *celt_alloc_scratch, which a...
2011 Mar 25
1
Another Error For TI C55x C Compiler
...le statement in block 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...