freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

codewarrior使用指南-資料下載頁(yè)

2025-08-04 22:23本頁(yè)面
  

【正文】 Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.如何使用匯編和 C語(yǔ)言混合編程? 匯編和 C語(yǔ)言中使用相同的符號(hào)(變量及函數(shù)名)? 注意參數(shù)傳遞規(guī)則? 注意函數(shù)返回值原則? 注意目標(biāo)文件格式 (ElfDwarforHIWARE).? 接口模塊 (C/Assembly)或 (Assembly/C)81TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.在 C中訪問(wèn)匯編變量變量聲明 (ASM) XDEF ASMData, ASMConstDataSec: SECTIONASMData: 1ConstSec: SECTIONASMConst: $44A6變量聲明( C語(yǔ)言) extern int ASMData。extern const int ASMConst。C代碼中使用變量 unsigned int CData。 CData = ASMData + ASMConst + 3。82TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.在匯編中訪問(wèn) C變量變量聲明( C語(yǔ)言)unsigned int CData。const unsigned int CConst。變量聲明 (ASM) XREF CData。XREF CConst。在匯編代碼中使用變量 LDD CConst STD CData83TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.在 C中調(diào)用匯編函數(shù)? 函數(shù)(匯編代碼) AddVar: ADDD CData ADDD 2, SP STD ASMData RTS函數(shù)原型 (C代碼 )void AddVar(unsigned int first, unsigned int second)。在 C中調(diào)用匯編函數(shù) AddVar(Cdata, 10)。84TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.在匯編中調(diào)用 C函數(shù)? 函數(shù)( C代碼中)void AddVar(unsigned int first, unsigned int second){ ASMData = Cdata + first + second。}函數(shù)聲明 (匯編 ) XREF AddVar在匯編中調(diào)用 C函數(shù) LDD CData 。 Load value of Cdata in D PSHD 。 PUSH D on the stack LDAB 10 。 Load 10 in D CLRA JSR AddVar85Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.TM?利用向?qū)?chuàng)建一個(gè)新工程項(xiàng)目?在新項(xiàng)目中加入或刪除文件?編譯?調(diào)試?啟動(dòng)程序?PRM文件設(shè)置?如何對(duì) IO及寄存器進(jìn)行操作?如何寫(xiě)中斷程序?如何使用匯編和 C語(yǔ)言混合編程?嵌入式編程注意事項(xiàng)?如何使用 ProcessorExpertTM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.嵌入式編程 vs. PC編程嵌入式編程環(huán)境的主要特點(diǎn):? 有限的 RAM;? 有限的 ROM;? 有限的棧空間;? 面向硬件編程;? 嚴(yán)格的定時(shí)( ISR,任務(wù), … );? 很多不同種類的指針( far/near/rom/uni/paged/…);? 特殊關(guān)鍵字 /標(biāo)識(shí)符(@, interrupt, tiny, … ) 87TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.數(shù)據(jù)類型? 通過(guò)為變量選擇最合適的數(shù)據(jù)類型可以最大程度地得到最短的代碼和執(zhí)行時(shí)間? 8位微控制器內(nèi)部的數(shù)據(jù)的長(zhǎng)度是 8位(一字節(jié)),然而C首選的數(shù)據(jù)類型是 ‘int‘? 8位機(jī)處理 8位數(shù)據(jù)類型比 16位數(shù)據(jù)類型效率更高? “int“和大數(shù)據(jù)類型只有當(dāng)所描述的數(shù)據(jù)的大小需要時(shí)才使用? 當(dāng)優(yōu)先考慮代碼效率時(shí),雙精度和浮點(diǎn)操作效率低,應(yīng)當(dāng)避免88TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.HC08的數(shù)據(jù)類型ANSI標(biāo)準(zhǔn)沒(méi)有精確定義數(shù)據(jù)類型的大小,但是 CodeWarrior 定義了 ...所有的數(shù)據(jù)類型默認(rèn)為有符號(hào) (除了 char)signed 例如 : ‘int’ = ‘signed int’ 0 25589TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.默認(rèn) CodeWarrior 的數(shù)據(jù)類型所有的基本數(shù)據(jù)類型可以被改變 …但是建議盡量使用默認(rèn)值90TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.數(shù)據(jù)類型選擇q對(duì) 8位 MCU,在選擇數(shù)據(jù)類型時(shí),有 3條原則 : 盡量使用最小的數(shù)據(jù)類型 盡可能使用無(wú)符號(hào)數(shù) 在表達(dá)式內(nèi)聲明數(shù)據(jù)類型,以便將數(shù)據(jù)類型減小到最小(強(qiáng)制類型轉(zhuǎn)換)q 使用 typedefs得到固定的大小 根據(jù)編譯器和系統(tǒng)而改變 移植到不同的機(jī)器代碼不變 當(dāng)值需要固定位時(shí)使用91TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.定義完整的數(shù)據(jù)類型在 main函數(shù)里聲明了 3種不同數(shù)據(jù)類型的變量92TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.僅最后面的位寫(xiě)入值 。 并且使用了一個(gè)寄存器每個(gè)變量的其余位被清零clr ,X變量在堆棧里有一個(gè)地址93TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.在 main函數(shù)里聲明了 3種不同數(shù)據(jù)類型的變量94TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.編譯器僅僅為使用到的變量保留存儲(chǔ)空間,這個(gè)例子中只有VarA被使用到了95TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.所有聲明的全局變量均被使用。96TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.在這種情況下,編譯器為所有變量保留了內(nèi)存 97TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.169。FreescaleSemiconductor,Inc.2022.變量聲明的內(nèi)存區(qū),每個(gè)變量有不同的大小( 2和 4字節(jié))根據(jù)變量大小的不同,每個(gè)加操作用不同的方法完成 98TM Freescale?andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allothe
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1