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

Method for using information output from encoding and decoding operation

A technology for outputting information, encoding and decoding, applied in software testing/debugging and other directions, can solve problems such as affecting program performance and occupying large system resources, and achieve the effect of reducing the amount of data, reducing calls, and reducing impact and impact

Inactive Publication Date: 2007-10-24
HUAWEI TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention provides a method for outputting information by using encoding and decoding to solve the problem of occupying large system resources and affecting the performance of the program in the prior art when outputting the running information of the program

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 using information output from encoding and decoding operation
  • Method for using information output from encoding and decoding operation
  • Method for using information output from encoding and decoding operation

Examples

Experimental program
Comparison scheme
Effect test

example

[0074] / / The function that realizes the information output, the first is the real output function, the second is the variable parameter Physical function Void tlib_trace(int code, int len, char*pData); void tlib_trace_vp(int code, int num,...); / / A represents a character string, b is a list (code, the number of variable parameters, variable parameter list) / / Note that there is a pair of "()" when writing parameter b / / Convert the coding interface into a call to a specific function #Define TLIB_TRACE_VP(a,b)tlib_trace_vp b; #Define TLIB_TRACE(a,b,c,d)tlib_trace(a,c,d); Void main(void) { int a, b, c; a=b=c=1; / / Example of calling method of variable parameter programming interface: 0, 1, 2, 3 dynamic parameters respectively TLIB_TRACE_VP("%Hi, Nice to meet you!\n", (100, 0)) TLIB_TRACE_VP("%d\n", (101, 1, a)) TLIB_TRACE_VP("%d\t%d\n", (102, 2, a, b)) TLIB_TRACE_VP("%d\t%d\t%d\n", (103, 3, a, b, c)) / / An example of programming interface calling method for out...

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 an information outputting method using coding / decoding, coding static information which needs outputting as a program runs and keeps constant in the running course of the program and making the coding unique; establishing a corresponding relation between code and static information; executing the program and receiving output information; using a code in the output information to inquire the corresponding relation so as to obtain corresponding static information and substituting the corresponding static information for the code in the output information and finally outputting the information.

Description

Technical field [0001] The present invention relates to coding and decoding technology in the fields of computers and communications, and in particular to a method for outputting information using coding and decoding. Background technique [0002] In the software code, in order to debug, track, test, understand the operating status of the system, and locate faults, it is often necessary to output some software operating information, such as printing information, debugging information, log information, trace information, and alarm information. For the convenience of reading, developers often use text to output this information. When the software performance requirements are not high, or the software scale is not large, the text method is a simple and effective method, and the impact on software performance is not very obvious. However, in embedded real-time environments or other commercial environments, it often has higher requirements for software performance, and the software sc...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 龙纲
Owner HUAWEI TECH 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