Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for automatically testing C compiler

An automated testing and compiler technology, applied in the field of C compilers, can solve the problems of cumbersome and slow manual testing of C compilers, and achieve the effects of fast automated testing, lightening work intensity, and liberating testers

Active Publication Date: 2017-11-07
CHIPSEA TECH SHENZHEN CO LTD
View PDF8 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, therefore the primary purpose of the present invention is to provide a method for automated testing of C compilers, which solves problems such as the cumbersome and slow speed of manual testing of C compilers

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically testing C compiler
  • Method for automatically testing C compiler
  • Method for automatically testing C compiler

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0044] The test scheme realized by the present invention needs a reference compiler, and the first choice should be the PICC compiler of Microchip Company, but the runtime library (PICC RunTime Lib) called by the PICC compiler is different from the runtime library (CSCC RunTime Lib) of Chipsea. ) are different, resulting in uncertain differences in the generated object code. The current feasible technical solution is: according to the characteristics of our chip core, embed assembly in the C source file, and compile the HEX file through CSCC (C compiler), CSASM (assembler) and CSLINK (linker), Com...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for automatically testing a C compiler. According to the method, an assembly is embedded into a C source file, and an HEX file obtained through the C compiler, an assembler and a linker in a compiling mode is combined with a lower computer hardware simulator to verify an expected result, so that the aim of verifying a CSCC compiler is achieved. Automatic testing is quickly achieved through the method, the correctness of a tool chain of the whole C compiler is indirectly tested by utilizing the whole IDE development environment, and the problems that the C compiler is used for compiling manually, simulation setting is tedious and the operation speed is low are solved.

Description

technical field [0001] The invention belongs to the technical field of C compilers, in particular to a method for fast automatic testing of chip C compilers. Background technique [0002] The chip integrated development environment (IDE Integrated Development Environment) plays an important role as a platform for manufacturers to develop chips. IDE software generally includes C compilers and assemblers. With the rapid demand of the chip market, the development of traditional assemblers Efficiency has been difficult to meet, and now C compiler plays a key role in the embedded field. In the process of chip manufacturers developing C compilers, a problem will be involved: how to verify the correctness of C compilers and related tool chains (C compilers, assemblers, linkers). [0003] When the compiler test mode includes the traditional compiler test mode and the Ctcgen tool test mode, the traditional compiler test mode: according to the syntax, design the test program generato...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3664G06F11/3684G06F11/3688
Inventor 裴远红刘勇陈元丰龙宣佑
Owner CHIPSEA TECH SHENZHEN CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products