Texas Instruments TMS320 DSP Computer Hardware User Manual


 
Contents
Preface...............................................................................................................................7
1Overview...................................................................................................................9
1.1ScopeoftheStandard............................................................................................10
1.1.1RulesandGuidelines....................................................................................11
1.2RequirementsoftheStandard..................................................................................11
1.3GoalsoftheStandard............................................................................................12
1.4IntentionalOmissions............................................................................................12
1.5SystemArchitecture...............................................................................................13
1.5.1Frameworks...............................................................................................13
1.5.2Algorithms.................................................................................................14
1.5.3CoreRun-TimeSupport.................................................................................14
2GeneralProgrammingGuidelines...............................................................................15
2.1UseofCLanguage...............................................................................................16
2.2ThreadsandReentrancy.........................................................................................16
2.2.1Threads....................................................................................................16
2.2.2Preemptivevs.Non-PreemptiveMultitasking.........................................................17
2.2.3Reentrancy................................................................................................17
2.2.4Example...................................................................................................18
2.3DataMemory.......................................................................................................19
2.3.1MemorySpaces..........................................................................................20
2.3.2ScratchversusPersistent...............................................................................20
2.3.3AlgorithmversusApplication............................................................................22
2.4ProgramMemory.................................................................................................23
2.5ROM-ability........................................................................................................23
2.6UseofPeripherals................................................................................................24
3AlgorithmComponentModel.....................................................................................25
3.1InterfacesandModules...........................................................................................26
3.1.1ExternalIdentifiers.......................................................................................27
3.1.2NamingConventions.....................................................................................28
3.1.3ModuleInitializationandFinalization..................................................................28
3.1.4ModuleInstanceObjects................................................................................28
3.1.5Design-TimeObjectCreation...........................................................................29
3.1.6Run-TimeObjectCreationandDeletion..............................................................29
3.1.7ModuleConfiguration....................................................................................30
3.1.8ExampleModule..........................................................................................30
3.1.9MultipleInterfaceSupport...............................................................................31
3.1.10InterfaceInheritance....................................................................................32
3.1.11Summary.................................................................................................32
3.2Algorithms..........................................................................................................33
3.3Packaging..........................................................................................................34
3.3.1ObjectCode...............................................................................................34
3.3.2HeaderFiles..............................................................................................35
3.3.3DebugVersesRelease..................................................................................35
SPRU352GJune2005RevisedFebruary2007Contents3
SubmitDocumentationFeedback