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

Endian conversion tool

A technology of byte order and byte exchange, applied in the direction of program code conversion, software engineering design, electrical digital data processing, etc., can solve the byte order incompatibility, the double byte order compiler does not track the byte order , pointer difficulty, etc.

Inactive Publication Date: 2014-03-26
INTEL CORP
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This would be when, for example, the source code includes a union or cast of a first pointer (which points to data consisting of multiple bytes) to a second pointer (which points to data consisting of a single byte) difficult
Pointers create difficulties because some double-endian compilers do not track the byte order passed through pointers (e.g. void pointers), and do not produce diagnostics for potential byte order changes passed through such pointers
So pointers etc. cause unforeseen endianness incompatibilities

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
  • Endian conversion tool
  • Endian conversion tool
  • Endian conversion tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In the following description, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. Well-known circuits, structures and techniques have not been shown in detail to avoid obscuring the understanding of this description. References to "one embodiment," "an embodiment," "example embodiment," "various embodiments," etc. mean that the embodiment(s) so described may include the particular feature, structure, or characteristics, but not every embodiment necessarily includes the particular feature, structure or characteristic. Furthermore, some embodiments may have some, all, or none of the features described for other embodiments. Also, "first", "second", "third", etc. as used herein describe a common object and indicate that different instances of the same object are being referred to. Such adjectives are not intended to imply that objects so described must be in a given sequenc...

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

In one embodiment of the invention code (e.g., compiler, tool) may generate information so a first code portion, which includes a pointer value in a first endian format (e.g., big endian), can be properly initialized and executed on a platform having a second endian format (e.g., little endian). Also, various embodiments of the invention may identify problematic regions of code (e.g., source code) where a particular byte order is cast away through void pointers.

Description

technical field [0001] The present invention relates to endian conversion. Background technique [0002] Endianness is a property of data storage and retrieval. Big endian data or variables may be stored in memory in the reverse byte order of little endian data or variables. Little endian data may be stored with the least significant byte at the lowest memory byte address, and big endian data may be stored with the most significant byte at the lowest memory byte address. Big and little endian variables with the same value may be the same in CPU registers, but may have a different order in memory. [0003] Source code written using one endian convention cannot be executed on a platform using another endian convention without recognizing how some data is stored in memory in a different order. The following C code provides an example: [0004] { [0005] int i = 0x12345678; [0006] char c = *((char*)&i); [0007] ...

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): G06F9/30
CPCG06F8/447G06F8/44
Inventor M.P.赖斯H.威尔金森M.J.多梅卡E.V.布雷夫诺夫P.拉赫纳
Owner INTEL CORP
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