1. 首页
  2. 课程学习
  3. 嵌入式
  4. 软件堆栈管理

软件堆栈管理

上传者: 2022-10-23 01:51:40上传 PDF文件 74.45 KB 热度 11次

ThePIC16C5Xhasastackwhichisonly2deep,and,

asaresult,onlytwonestedcallscanbemade(i.e.,only

onecallwithinacallroutine).Ifmorethantwolevelsof

subroutinenestingisrequired,thisapplicationnotecan

beusedtoimplementastackmanagertohandlethe

flowofthecalls.AN527SoftwareStackManagementAuthor:StanD’SouzaIMPLEMENTATIONMicrochipTechnologyInc.Thisapplicationnoteimplementsa5-deepstack,so5nestedcallscanbemadewithoutoverowingthestack.NCALLisdenedasaMACROwhichwillbeINTRODUCTIONusedinsteadofthemnemonicCALL,whenaThePIC16C5Xhasastackwhichisonly2deep,and,subroutinecallismade.

用户评论