Download ThreadX User Guide: Green Hills edition
Transcript
Coding Conventions ThreadX File Names 261 All ThreadX C file names take the form TX_c[x].C where c represents the first initial letter of the component and [x] represents a variable number of supplemental initial letters used to identify the function contained in the file. For example, file tx_tc.c contains the function _tx_thread_create and file tx_ike.c contains the function _tx_initialize_kernel_enter. Component specification file names are slightly different, taking on the form TX_ccc.H where the ccc field represents the first three characters of the component’s name. For example, the file tx_tim.h contains the timer component specification. The file naming conventions make it easy to distinguish ThreadX files from all other application source files. ThreadX Name Space In a similar vein, all ThreadX functions and global data have a leading _tx in their name. This keeps ThreadX global symbols separate from the application symbols and in one contiguous area of load map created by the linker. i Most development tools will insert an additional underscore in front of all global symbols. For ANSI compliance and greater compiler compatibility, all symbolic names in ThreadX are limited to 31 characters. Express Logic, Inc.