您好,欢迎访问三七文档
当前位置:首页 > 建筑/环境 > 工程监理 > ADS工程移植到IAR工程的方法
ARM® Developer SuitetoARM IAR Embedded Workbench®Migration GuidePart no: EWMRVARM1bIntroductionThisguideexaminesthedifferencesbetweenusingtheARM®DeveloperSuite(ADS)developmenttoolsIDEandtheIARSystemsARMdevelopmenttoolsIDE.Theissuesrelatedtoassemblerconversionrangefrombasictopicssuchascommandlineoptions,systemsegment/areanames,listing/outputoptions,codegenerationoptions,registernamingdifferences,assembleroperators,assemblerdirectives,pseudo-instructions,andotherassemblerdifferences,toadvancedtopicssuchaspredefinedsymbols,conditionalassembly,macros,andmodules.Linkerrelatedtopicssuchascommandlineoptionsandimagememorymappingarealsodocumented.Thefeatures,options,descriptions,andexamplesspecifiedinthedocumentarebasedontoolsassociatedwithARMDeveloperSuiteVersion1.2andARMIAREmbeddedWorkbenchVersion4.20A.InformationabouttheARMdevelopmenttoolswasobtainedfromtheARMDeveloperSuiteVersion1.2AssemblerGuide(ARMDUI0068B)theARMDeveloperSuiteVersion1.2LinkerandUtilitiesGuide(ARMDUI0151A)andtheARMDeveloperSuiteVersion1.2DeveloperGuide(ARMDUI0056D).InformationabouttheIARSystemsdevelopmenttoolsisbasedontheARMIARAssemblerReferenceGuide(AARM-6),theARMIARC/C++CompilerReferenceGuide(CARM-10)andtheIARLinkerandLibraryToolsReferenceGuide(XLINK-459I).IAR Embedded Workbench IDE overviewTheIAREmbeddedWorkbenchIDEconsistsoftoolssuchasacompiler,assembler,linker,librarybuilder,librarian,editor,projectmanager,commandlineinterface,debugger,andsimulator.ARMDeveloperSuiteincludescommand-linedevelopmenttools(whichincludesacompiler,ARMassembler,linkerandvarioussupportlibraries),GUIdevelopmenttools(whichincludesadebugger,editorandprojectmanager),alibrarianandasimulator.Equivalenttoolsfrombothdevelopmentenvironmentsarelistedintable1togetherwiththecommandlinecommandsforinvokingthem:ToolsARM Developer SuiteIAR Embedded Workbench IDECompilerADS C/C++ compiler, armcc or armcppIAR C/C++ Compiler, iccarmAssemblerADS ARM assembler, armasmIAR ARM Assembler, aarmLinkerADS ARM linker, armlinkIAR XLINK Linker, xlinkLibrary builderIAR XAR Library Builder, xarLibrarianADS ARM librarian, armarIAR XLIB Librarian, xlibDebuggerADS ARM eXtended Debugger (AXD)IAR CSPY® DebuggerSimulatorADS ARMulatorIAR CSPY® Simulator1.ARMDeveloperSuiteandIAREmbeddedWorkbenchIDEequivalentsTheARMIARC/C++Compilerfeaturesefficientcodegenerationwithdebuginformation,C/C++languagesupportfacilitiesandtypechecking.TheARMIARAssemblerfeaturesabuilt-inCpreprocessorandsupportsconditionalassembly.TheIARXLINKLinkerlinksobjectfilesproducedbythecompilerorassemblertoproducemachinecodefortheARMcore,whiletheIARXARLibraryBuilderandIARXLIBLibrarianallowmanipulationoflibraryobjectfiles.TheIARC-SPY®Debuggerisahigh-levellanguagedebuggerthatisintegratedintotheIDE,socorrectionsaremadedirectlyinthesamesourcecodewindowusedtocontrolthedebugging.TOOLS COMPARISONAnimmediatedifferencebetweenthetoolsetsisthelevelofintegrationofthedevelopmentenvironment.InIAREmbeddedWorkbench,theC-SPYDebuggeriscompletelyintegratedwiththeIDE,whereasinARMDeveloperSuite,theCodewarrior™IDEbyMetrowerks™andtheARMeXtendedDebugger(AXD)areseparatetoolsthatformacompleteGUI-baseddevelopmentenvironment.However,essentialprojectmanagementoptionsandtools,andmake/build/debugmenusaresimilar.MetrowerksCodewarriorIDEisaprojectmanagementtoolformanagingsourcefilesandbuildingsoftwaredevelopmentprojects,whiletheAXDdebuggerprovidesanenvironmentfordebuggingC,C++andassemblylanguagesourcecode.Bydefault,theAXDdebuggeriscalledtodebugandrunimagesbuiltfromtheCodewarriorIDE.TheAXDdebuggerisavailableforMicrosoft®Windows®andUNIX,buttheCodewarriorIDEisonlyavailableforWindows.Generaldebuggerfeatureslikesourceanddisassemblyleveldebugging,sourcestepping,settingbreakpoints,variable,registerandexpressionmonitoring/watching,callstackinformationandfacilitiesforthird-partyextensions(RTOSawareness,simulationmodules,emulatordrivers,etc.)areavailableinbothtoolsets.Bothsourcecodeeditorsprovidetypicalutilitiessuchascoloredkeywordsandsearchandreplace.ARMalsoprovidesanIDEcalledtheRealViewDeveloperSuite.ProjectfilescreatedwiththeCodewarriorIDEhavethefilenameextension.mcp,comparedtoRealViewDeveloperSuiteprojectfilesthathavetheextension.prj.NotethatifyoumigratefromtheCodewarriorIDEtotheRealViewDeveloperSuitetoolsorviceversa,theprojectfilewillneedtobere-createdandrelevantsourcefilesre-added.Noautomaticconversiontoolsexist.2Getting startedThissectiondiscusseshowtogetstartedwithconvertingCandassemblerprojectsfromARMDeveloperSuitetoIAREmbeddedWorkbench.Filename extensionsInARMDeveloperSuite,projectslistallassociatedsourcefilesrequiredbythetargetapplication.Theseprojectfileshavea.mcpfilenameextension.InIAREmbeddedWorkbench,workspacesareusedfororganizingmultipleprojects.Thisisusefulwhenyouaresimultaneouslymanagingseveralrelatedprojects.Workspacefileshavethefilenameextension.eww,andprojectfileshavetheextension.ewpinIAREmbeddedWorkbench.ThefilenameextensionsofCsourceandheaderfilesare.cand.h,respectively,inbothARMDeveloperSuiteandIAREmbeddedWorkbench,whichincludesstandardlibraryfilesanduser
本文标题:ADS工程移植到IAR工程的方法
链接地址:https://www.777doc.com/doc-163004 .html