11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

C Language FeaturesPsectsTable 3.6: Integral divisionOperand 1 Operand 2 Quotient Remainder+ + + +- + - -+ - - +- - + -•If you are using DSPICC to invoke the linker, you don’t need to worry about the informationdocumented here, except as background knowledge. If you want to run the linkermanually (this is not recommended), or write your own assembly language subroutines,you should read this section carefully.A psect can be created in assembler code by using the PSECT assembler directive (see Section4.3.8.3). In C, user-defined psects can be created by using the #pragma psect preprocessor directive,see Section 3.12.3.5.3.9.1 Compiler-generated PsectsThe code generator places code and data into psects with standard names which are subsequentpositioned by the default linker options. These psects are described below.The compiler-generated psects which are placed in the program space are:powerup This contains executable code for the standard or user-supplied power-up routine.init This contains executable code associated with the RAM clear and copy portion of the runtimestartup module.end_init This contains executable code associated with the runtime startup module which transfercontrol to the funciton main().text This contains all executable code compiled from C source modules. It also contains all codefrom library modules.ctext This contains function entry code used when large model is selected.const This psects holds objects that are declared const and string literals which are not modifiable.45

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

Saved successfully!

Ooh no, something went wrong!