Semester : SEMESTER 6
Subject : Embedded System
Year : 2018
Term : MARCH
Scheme : 2015 Full Time
Course Code : EC 308
Page:29
In-line assembly codes of C functions
* Processor and memory sensitive part of the program within the inline assembly, and the
complex part in the HLL codes.
C Program Elements Preprocessor include Directive
_ Header, configuration and other available source files are made the part of an embedded
system program source file by this directive
Examples of Preprocessor include Directives
# include "VxWorks.h" /* Include Vx Works functions*/
# include "semLib.h" /* Include Semaphore functions Library */
# include "taskLib.h" /* Include multitasking functions Library */
# include "sysLib.c" /* Include system library for system functions */
# include "netDrvConfig.txt" /* Include a text file that provides the 'Network Driver
Configuration’.
*/# include " prctlHandlers.c" /* Include file for the codes for handling and actions as
perthe protocols used for driving streams tothe network. */
Preprocessor Directive for the Definitions
* Global Variables - # definevolatile booleanIntrEnable
* Constants - # define false 0
* Strings- # define welcomemsg"Welcome To ABC Telecom"
Preprocessor Macros
Ů Macro - A named collection of codes that is defined in a program as preprocessor
directive.
* Differs from a function in the sense that once a macro is defined by a name, the compiler
puts the corresponding codes at the macro at every place where that macro-name appears.re
used for short codes only.