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.

8−6PCP Reference ManualSkeleton of a Linker Script FileThe skeleton of a linker script file now looks as follows:architecture architecture_name{architecture definition}derivative derivative_name{derivative definition}LINKER SCRIPT LANGUAGEprocessor processor_name{processor definition}memory definitions and/or bus definitionssection_layout space_name{section placement statements}8.3 SYNTAX OF THE LINKER SCRIPT LANGUAGE8.3.1 PREPROCESSINGWhen the linker loads an LSL file, the linker processes it with a C−styleprepocessor. As such, it strips C and C++ comments. You can use thestandard ISO C preprocessor directives, such as #include, #define,#if/#else/#endif.For example:#include "arch.lsl"Preprocess and include the file arch.lsl at this point in the LSL file.

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

Saved successfully!

Ooh no, something went wrong!