1. 首页
  2. 课程学习
  3. 嵌入式
  4. 对于MPLAB C18 C编译器的动态内存分配

对于MPLAB C18 C编译器的动态内存分配

上传者: 2022-10-23 13:09:31上传 PDF文件 243.09 KB 热度 7次

Dynamicmemoryallocationisanicefunctionalitythat

isprovidedwithvirtuallyallPC-basedcompilers.How-

ever,notallmicrocontrollercompilershavesuchcapa-

bility,mostlikelyduetothelackofasophisticated

operatingsystemwithmemorymanagement.Although

mostapplicationsarestaticinnature,therearecases

whereaneedfordynamicallocationofmemory

resourcesexists.Examplesincludeanynumberofnet-

workprotocolsthathaveadynamicallyspecified

nature.Thisapplicationnotepresentsasimpleandeffi-

cientmethodfordynamicmemoryallocationwithout

theneedofanoperatingsystem.AN914DynamicMemoryAllocationfortheMPLABC18CCompilerAuthor:RossM.FoslerFIGURE1:SIMPLEHEAPEXAMPLEMicrochipTechnologyIncorporatedAllocationBitSegmentLength/ReferenceINTRODUCTIONSegment1DynamicmemoryallocationisanicefunctionalitythatisprovidedwithvirtuallyallPC-basedcompilers.How-ever,notallmicrocontrollercompilershavesuchcapa-bility,mostlikelyduetothelackofa

用户评论