13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>Allocate memory. Returns a pointer to space of size bytes on the stack of the calling function. Memoryallocated through this function is freed when the calling function returns. This function is used internally<strong>for</strong> variable length arrays, it is not to be used by end users.__freevoid volatile __free( void * p );Deallocate the memory pointed to by p. p must point to memory earlier allocated by a call to __alloc().__nopvoid __nop( void );Generate a NOP instruction.__get_return_address__codeptr volatile __get_return_address( void );Used by the compiler <strong>for</strong> profiling when you compile with the option --profile. Returns the return addressof a function.__remap_pcvoid volatile __remap_pc( void );Load the 'real' program address. This intrinsic is used in the startup code to assure that the reset handleris immune <strong>for</strong> any ROM/RAM remapping.__setspvoid volatile __setsp( __data void * stack );Initialize the stack pointer with 'stack'.__getspsrunsigned int volatile __getspsr( void );Get the value of the SPSR status register. Returns the value of the status register SPSR.__setspsrunsigned int volatile __setspsr( int set, int clear);Set or clear bits in the SPSR status register. Returns the new value of the SPSR status register.Example:#define SR_F 0x00000040#define SR_I 0x0000008028

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!