13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Run−time Environment4−34.1 INTRODUCTIONThis chapter describes the startup code used by the TASKING PCP Ccompiler, the stack layout and the heap; and the floating−point arithmetic.4.2 STARTUP CODEJust as the PCP is part of the TriCore processor, a PCP application is part ofa TriCore application. However, the PCP application runs as an interruptservice routine which is activated by the TriCore application.The PCP C startup code acts as a ’wrapper’ which places the PCP main()application into an interrupt service routine on interrupt channel 1.When this interrupt is activated, it executes in parallel with the TriCoreapplication and returns the exit code of the PCP main() application afterfinishing execution..See also section 6.6, Linking the C Startup Code in Chapter Using the Linkerof the User’s Manual.4.3 STACK USAGEThe stack is used for parameter passing, allocation of automatics,temporary storage and storing the function return address. The compileruses a static stack. Overlay sections are generated by the compiler tocontain the stack objects. The overlay sections are overlayed by the linkerusing a call graph.• • • • • • • •

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

Saved successfully!

Ooh no, something went wrong!