Font Size: a A A

Design And Development Of ARM Automatic Compilationtools

Posted on:2015-10-11Degree:MasterType:Thesis
Country:ChinaCandidate:Y S LiuFull Text:PDF
GTID:2348330542952449Subject:Engineering
Abstract/Summary:PDF Full Text Request
To compile the ARM project in Linux environment,you have to use ARM cross compiler tool and MAKE tool to achieve the compilation process by a Makefile.ARM projcts' syntax is difference between the Windows platform and Linux platform,and compiler tool chain is not the same too.Topic comes from the demand of a company design platform upgrade,it needs to translate the ARM project from Windows platform to Linux platform and compile and connect the project.ARM project is different under Windows platform and Linux platform so that to develop the ARM project in Linux platform,we must first modify the ARM projects under Linux platform so that it matches the rules of the GCC compiler.Secondly,in order to meet the company's project development needs,need to achieve automatic definition ARM project directory structure.Finally,division the binary file and generating vhx files that needed by other design platform parts.The requirements of the ARM automatically compile ARM functional tool are:ARM assembler files automatically migrated,automatic porting ARM C source files,Address mapping files automatic migration,automatically query the directory structure,configurating compile and connection parameters,dividing the binary files.According to the demand,the paper is divided into three modules:transplant module,compile module and interface modules.Detailed design as follows:The main function of transplant the module is to automatically convert ARM project from Windows platform to Linux platform.Transplant module includes three scripts:ARM assembler file migration script,C source file migration script and address mapping configuration file migration script.Paper first detailed analysis the difference of the ARM project about assembler source files,ARM C source files and address mapping configuration file between Windows platform and Linux platform.Then using a Python regular expression matches the individual files in the Windows platform relevant keywords convert Linux platform relevant keywords in order to achieve the purpose of automatic migration.The main function of compiler module is:the definition of ARM project directory,compile connection configuration parameters,split binary file.ARM project directory definitions includes define the input file directory,the output file directory and library files directory.Because the ARM compilation tools is designed to adapt the company's directory structure and ARM projects of any architecture,automatically defined directory structure is implemented directly in the Makefile that changing directories on the basis of the company's project directory structure on ARM will not affect the use of tools.Compile connection configuration parameters is implemented in the configuration script,an example set some parameters ARM7 compiler connection in paper.If there are any demands or ARM architecture changes,it's only need relevant parameters.Finally,binaries need to split into vhx script according to the project environment,processing is implemented in a Python script.The main function of interface module is communication easily with other part and automatically adjust ARM compilation tools features that simplify the use of processes.It includes a configuration script and a control script,using Shell scripting language.Tool is tested in two steps.Firstly artificial view transplantation results in line with expectations.Then run the ARM project in VCS Verification Platform tools in Linux platform,basic authentication through,while ARM C inline assembly and delay problem to be solved.The tool has been used in the company,greatly simplifying the design process and good effect.
Keywords/Search Tags:ARM, Cross-compiler, Makefile, Automatic transplant
PDF Full Text Request
Related items