KR20080095443A - Method and apparatus for generating low-power source code of mobile terminal - Google Patents
Method and apparatus for generating low-power source code of mobile terminal Download PDFInfo
- Publication number
- KR20080095443A KR20080095443A KR1020070039922A KR20070039922A KR20080095443A KR 20080095443 A KR20080095443 A KR 20080095443A KR 1020070039922 A KR1020070039922 A KR 1020070039922A KR 20070039922 A KR20070039922 A KR 20070039922A KR 20080095443 A KR20080095443 A KR 20080095443A
- Authority
- KR
- South Korea
- Prior art keywords
- low power
- source code
- code
- size
- software technology
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
Description
도 1은 본 발명의 실시 예에 따른 이동 단말기를 위한 저전력 소스 코드 생성 장치를 나타낸 블록도,1 is a block diagram showing an apparatus for generating a low power source code for a mobile terminal according to an embodiment of the present invention;
도 2는 본 발명의 실시 예에 따른 이동 단말기를 위한 저전력 소스 코드 생성 방법을 나타낸 순서도,2 is a flowchart illustrating a method for generating a low power source code for a mobile terminal according to an embodiment of the present invention;
도 3은 도 2에서 저전력 소프트웨어 기술 적용 방식을 상세히 나타낸 순서도.FIG. 3 is a flowchart illustrating a method of applying low power software technology in FIG. 2. FIG.
본 발명은 이동 단말기를 위한 저전력 소스 코드를 생성하는 방법 및 장치에 관한 것으로, 특히 이동 단말기를 위한 소프트웨어를 최적화하여 저전력 소스 코드를 생성하는 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for generating low power source code for a mobile terminal, and more particularly, to a method and apparatus for generating low power source code by optimizing software for a mobile terminal.
최근 이동 단말기는 통신 기술 및 제작 기술이 발달함에 따라 메모리 용량이나 디스플레이 장치의 성능 또한 발달되어 다양한 멀티미디어 기능(예를 들어 동영상, MP3, 휴대 인터넷, 카메라 등)을 사용자에게 제공한다. 이에 따라 서비스 제공 자(이동 단말기 제조자)는 이동 단말기에서 제한적인 전원을 이용하여 통화 기능 및 멀티미디어 기능 등을 사용자에게 제공하기 위해 이동 단말기의 사용 가능 시간을 증가시키는 방안을 연구하고 있다.Recently, with the development of communication technology and production technology, the mobile terminal has also developed memory capacity and display device performance to provide various multimedia functions (eg, video, MP3, mobile Internet, camera, etc.) to the user. Accordingly, a service provider (mobile terminal manufacturer) is researching a method of increasing the available time of a mobile terminal to provide a call function and a multimedia function to a user by using a limited power source in the mobile terminal.
종래 이동 단말기의 사용 가능 시간을 증가시키는 방안으로 대용량 배터리의 사용 및 저전력 사용 방안 등이 있다.As a method of increasing the usable time of a conventional mobile terminal, there is a method of using a large capacity battery and using a low power.
먼저 이동 단말기에서 대용량 배터리의 사용을 통해 이동 단말기의 사용 가능 시간을 증가시키는 방안은 배터리 용량에 비례하여 이동 단말기의 사용 가능 시간이 증가되지만, 이동 단말기의 가격 상승과 전체적인 이동 단말기의 크기 증가로 인한 디자인 측면에서 여러 가지 제약 조건을 야기시켜 이동 단말기의 경쟁력 감소라는 문제를 발생시킨다.First of all, the method of increasing the usable time of the mobile terminal through the use of a large capacity battery in the mobile terminal increases the usable time of the mobile terminal in proportion to the battery capacity, but due to the increase in the price of the mobile terminal and the increase in the overall size of the mobile terminal. In terms of design, various constraints cause a problem of reduced competitiveness of the mobile terminal.
그리고 이동 단말기에서 저전력을 사용함으로 인해 이동 단말기의 사용 가능 시간을 증가시키는 방안은 이동 단말기의 소비 전력 감소에 따라 전체적인 이동 단말기의 사용 가능 시간이 증가되며, 일반적으로 하드웨어에서 저전력 기술이 적용된다.In addition, the method of increasing the usable time of the mobile terminal by using low power in the mobile terminal increases the usable time of the entire mobile terminal as the power consumption of the mobile terminal decreases. Generally, low power technology is applied in hardware.
한편, 최근 진행되고 있는 소프트웨어에서의 전력 최적화(Power Optimization)에 대한 연구 결과들은 저전력 소프트웨어 구현을 통한 이동 단말기의 소비 전력 감소의 실효성을 뒷받침하고 있다. 상기 저전력 소프트웨어 구현을 위한 대표적인 방법은 컴파일러(Compiler) 최적화 방법 및 소스 코드(Source Code) 최적화 방법으로 구분할 수 있다.Meanwhile, recent studies on power optimization in software support the effectiveness of reducing power consumption of mobile terminals by implementing low power software. Representative methods for implementing the low power software may be classified into a compiler optimization method and a source code optimization method.
종래 이동 단말기에서 저전력 소프트웨어 구현을 위한 방법 중 소스 코드 최 적화 방법은 소프트웨어 설계자에 의해 소스 코드 비저전력 코딩 형식을 수동적으로(Manually) 분석한 후, 이를 저전력 코딩 형식으로 변경하는 것이다. 그러나 소프트웨어의 구조가 복잡해지고 소스 코드의 양이 방대해지면서 종래 소스 코드 최적화 방법은 현재 이동 단말기에 적용하기 불가능한 상황이다.Source code optimization among methods for implementing low power software in a conventional mobile terminal is to manually analyze the source code non-low power coding format by a software designer and then change it to a low power coding format. However, as the structure of the software is complicated and the amount of source code is enormous, the conventional source code optimization method is currently impossible to apply to a mobile terminal.
본 발명은 저전력 소스 코드를 이용하여 단말기의 저전력 소스 코드를 생성하는 방법 및 장치를 제공한다.The present invention provides a method and apparatus for generating low power source code of a terminal using low power source code.
상기 본 발명에 따른 이동 단말기를 위한 저전력 소스 코드 생성 방법은, 미리 정의된 저전력 룰 세트를 근거로 원본 소스 코드를 스캐닝하여 저전력 소프트웨어 기술 적용이 가능한 비저전력 코딩 형식을 검출하고, 상기 검출된 비저전력 코딩 형식을 해당 저전력 소프트웨어 기술 적용으로 인해 코드 사이즈가 변화하는 기술 별로 분류하여, 저전력 소프트웨어 기술 적용 대상 리스트를 생성하는 과정과, 상기 저전력 소프트웨어 기술 적용 대상 리스트를 근거로 해당 저전력 소프트웨어 기술 적용으로 인해 상기 코드 사이즈가 유지 혹은 감소하는 기술을 상기 원본 소스 코드에 적용하여 제1 저전력 소스 코드를 출력하는 과정과, 해당 저전력 소프트웨어 기술 적용으로 인해 상기 코드 사이즈가 증가하는 기술을 우선순위에 따라 상기 제1 저전력 소스 코드에 적용하여 최종 저전력 소스 코드를 출력하는 과정을 포함하며, 여기서 상기 최종 저전력 소스 코드의 코드 사이즈가 이동 단말기의 메모리 사이즈를 초과하지 않는 범위 내에서 상기 코드 사이즈가 증가하는 기술을 상기 제1 저전력 소스 코드에 적용한다.The low power source code generation method for a mobile terminal according to the present invention detects a non-low power coding format applicable to low power software technology by scanning original source code based on a predefined low power rule set, and detects the detected non low power. Classifying the coding format into technologies for which the code size changes due to the application of the corresponding low power software technology, generating a list of application targets for low power software technology, and applying the corresponding low power software technology based on the low power software technology application target list. A process of outputting a first low power source code by applying a technique of maintaining or decreasing a code size to the original source code, and a technique of increasing the code size due to application of the corresponding low power software technology according to a priority of the first low power sauce And applying a code to output a final low power source code, wherein the first low power technology employs a technique of increasing the code size within a range in which a code size of the final low power source code does not exceed a memory size of a mobile terminal. Applies to source code.
또한 상기 본 발명에 따른 이동 단말기를 위한 저전력 소스 코드 생성 장치는, 미리 정의된 저전력 룰 세트를 근거로 원본 소스 코드를 스캐닝하여 저전력 소프트웨어 기술 적용이 가능한 비저전력 코딩 형식을 검출하고, 상기 비저전력 코딩 형식을 해당 저전력 소프트웨어 기술 적용으로 인해 코드 사이즈가 변화하는 기술 별로 분류하여, 저전력 소프트웨어 기술 적용 대상 리스트를 생성하는 비저전력 코딩 형식 스캐너와, 상기 저전력 소프트웨어 기술 적용 대상 리스트를 근거로 해당 저전력 소프트웨어 기술 적용으로 인해 상기 코드 사이즈가 유지 혹은 감소하는 기술을 상기 원본 소스 코드에 적용하여 제1 저전력 소스 코드를 출력하고, 해당 저전력 소프트웨어 기술 적용으로 인해 상기 코드 사이즈가 증가하는 기술을 우선순위에 따라 상기 제1 저전력 소스 코드에 적용하여 최종 저전력 소스 코드를 출력하는 저전력 소프트웨어 기술 적용기를 포함하며, 여기서 상기 최종 저전력 소스 코드의 코드 사이즈가 이동 단말기의 메모리 사이즈를 초과하지 않는 범위 내에서 상기 코드 사이즈가 증가하는 기술을 상기 제1 저전력 소스 코드에 적용한다.In addition, the low power source code generation apparatus for a mobile terminal according to the present invention, by scanning the original source code based on a predefined low power rule set to detect a non-low power coding format that can be applied to low power software technology, the non-low power coding A non-power coding method scanner that generates a low power software technology application target list by classifying the format by a technology whose code size changes due to the application of the low power software technology, and applies the low power software technology based on the low power software technology application target list. The first low-power source code is output by applying the technique of maintaining or decreasing the code size to the original source code, and the technique of increasing the code size according to the priority is applied to the technique of priority.A low power software technology applicator that applies to low power source code to output a final low power source code, wherein the code size increases within a range in which the code size of the final low power source code does not exceed the memory size of the mobile terminal. Is applied to the first low power source code.
이하 첨부된 도면을 참조하여 본 발명의 바람직한 실시 예를 상세히 설명한다. 또한 본 발명을 설명함에 있어서, 관련된 공지기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단된 경우 그 상세한 설명은 생략한다. 그리고 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 이용자, 운용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 그 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In describing the present invention, when it is determined that a detailed description of a related known function or configuration may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted. Terms to be described later are terms defined in consideration of functions in the present invention, and may be changed according to intention or custom of a user or an operator. Therefore, the definition should be made based on the contents throughout the specification.
먼저 본 발명의 개념을 설명하면, 본 발명은 미리 정의된 저전력 룰 세트를 근거로 이동 단말에 대한 원본 소스 코드를 스캐닝하여 저전력 소프트웨어 기술 적용이 가능한 비저전력 코딩 형식을 가지는 코드가 원본 소스 코드 중에 존재하는지를 분석하고, 원본 소스 코드 중 상기 비저전력 코딩 형식을 가지는 코드에 해당 저전력 소프트웨어 기술을 적용하여 저전력 소스 코드를 생성한다. 상기 저전력 소스 코드는 추후 이동 단말의 메모리에 전달되어 저장된다.First, the concept of the present invention, the present invention is a code having a non-low power coding format that can be applied to low power software technology by scanning the original source code for the mobile terminal based on a predefined low power rule set exists in the original source code The low power source code is generated by applying the corresponding low power software technology to the code having the non low power coding format among the original source code. The low power source code is later delivered to and stored in the memory of the mobile terminal.
이하, 이동 단말기를 위한 저전력 소스 코드 생성 방법 및 장치는 PC(Personal Computer)와 같이 개별적인 시스템에 구비되어 사용된다. 그리고 본 발명의 실시 예에 따라 출력되는 저전력 소스 코드는 추후 이동 단말기의 제조 시 이동 단말기의 동작 메모리에 저장되어 이동 단말에서 저전력 모드가 수행될 수 있도록 한다.Hereinafter, a method and apparatus for generating low power source code for a mobile terminal is used in a separate system such as a personal computer (PC). In addition, the low power source code output according to an embodiment of the present invention is stored in the operation memory of the mobile terminal when the mobile terminal is manufactured so that the low power mode can be performed in the mobile terminal.
본 명세서에서 원본 소스 코드는 비저전력 코딩 형식 및 저전력 코딩 형식을 가지는 코드 및 나머지 소스 코드를 포함하고, 저전력 소스 코드는 저전력 코딩 형식을 가지는 코드 및 나머지 소스 코드를 포함한다고 정의하여 설명하기로 한다.In the present specification, the original source code includes a code having a non-low power coding format and a low power coding format and the remaining source code, and the low power source code will be described as being defined as including a code having a low power coding format and the remaining source code.
도 1은 본 발명의 실시 예에 따른 이동 단말기를 위한 저전력 소스 코드 생성 장치를 나타낸 블록도이다.1 is a block diagram illustrating an apparatus for generating a low power source code for a mobile terminal according to an exemplary embodiment of the present invention.
본 발명의 실시 예에 따라 이동 단말기를 위한 저전력 소스 코드 생성 장치는 메모리(130)와, 제어부(150)를 포함한다.According to an embodiment of the present invention, a low power source code generation apparatus for a mobile terminal includes a
도 1에서 메모리(130)에는 이동 단말기를 위한 저전력 소스 코드 생성 장치가 수행되기 전, 저전력 룰 세트가 미리 저장된다. 상기 저전력 룰 세트는 아래 <표 1>에 나열된 비저전력 코딩 형식을 검출하도록 정의한 형식의 집합이다. 따라서 상기 저전력 룰 세트를 이용하여 저전력 소프트웨어 기술 적용이 가능한 비저전력 코딩 형식이 실제적으로 원본 소스 코드(110) 상의 몇 번째 라인에 존재하는지를 검출 가능하다.In FIG. 1, the low-power rule set is stored in advance in the
아래 <표2>에서 <표4>에 기술되어 있는 저전력 기술에 대해 비저전력 코딩 형식을 검출하는 알고리듬을 바탕으로 저전력 룰 세트를 정의한다.Table 2 below defines the low-power rule set based on the algorithm for detecting the non-low-power coding format for the low-power technologies described in Table 4.
아래 <표 1>은 여러 가지 저전력 코딩 형식들의 집합으로 각 저전력 소프트웨어 기술에 대한 설명 및 비저전력 코딩 형식과 저전력 코딩 형식에 대한 실제적인 C 코드에 대한 예제를 나타낸 표이다.Table 1 below is a set of various low-power coding formats that describe each low-power software technology and examples of actual C code for the non-low and low-power coding formats.
아래 <표 2>는 상기 <표 1>의 저전력 소프트웨어 기술 중 저전력 코딩 형식으로 변환 시 코드 사이즈가 감소하는 기술에 대해 비저전력 코딩 형식을 검출하기 위해 정의되어야 할 저전력 룰에 대한 기본 알고리듬, 비저전력 코딩 형식을 저전력 코딩 형식으로 변환 시 기대할 수 있는 저전력 적용 효과를 나타낸 표이다.<Table 2> below is a basic algorithm for low power rules that should be defined to detect non-low power coding formats for non-low power coding formats among the low power software technologies of <Table 1>. This table shows the low power application effects that can be expected when converting a coding format to a low power coding format.
아래 <표 3>은 상기 <표 1>의 저전력 소프트웨어 기술 중 저전력 코딩 형식으로 변환 시 코드 사이즈가 유지되는 기술에 대해 비저전력 코딩 형식을 검출하기 위해 정의되어야 할 저전력 룰에 대한 기본 알고리듬, 비저전력 코딩 형식을 저전력 코딩 형식으로 변환 시 기대할 수 있는 저전력 적용 효과를 나타낸 표이다.Table 3 below is a basic algorithm for low power rules that should be defined to detect a non-low power coding format for a technology in which code size is maintained when converting to a low power coding format among the low power software technologies of Table 1, and non-power. This table shows the low power application effects that can be expected when converting a coding format to a low power coding format.
아래 <표 4>는 상기 <표 1>의 저전력 소프트웨어 기술 중 저전력 코딩 형식으로 변환 시 코드 사이즈가 증가하는 기술에 대해 비저전력 코딩 형식을 검출하기 위해 정의되어야 할 저전력 룰에 대한 기본 알고리듬, 비저전력 코딩 형식을 저전력 코딩 형식으로 변환 시 기대할 수 있는 저전력 적용 효과를 나타낸 표이다.<Table 4> below is a basic algorithm for low power rules that should be defined to detect a non-low power coding format for a technology in which the code size increases when converting to a low power coding format among the low power software technologies of <Table 1>. This table shows the low power application effects that can be expected when converting a coding format to a low power coding format.
코드 사이즈 증가가 예측되는 저전력 코딩 형식들은 소정의 기준(예를 들어 저전력 효과가 큰 순서인 메모리 접근 횟수를 감소시키는 순서 및 수행 명령어 개수를 감소시키는 순서)에 따라 고유한 우선순위를 가진다. 일 예로서 <표 4>에서는 별칭, 루프 타일링, 루프 언롤링, 인라인 함수 순으로 적용될 수 있다.Low-power coding formats that expect an increase in code size have unique priorities according to certain criteria (e.g., the order of decreasing memory accesses and the order of reducing the number of instructions executed, which are the order of greatest low power effect). As an example, in Table 4, aliases, loop tiling, loop unrolling, and inline functions may be applied.
그리고 상기 메모리(130)는 저전력 코딩 형식을 적용할 대상인 원본 소스 코드를 나타내는 저전력 소프트웨어 기술 적용 대상 리스트 및 외부 인터페이스(도시하지 않음)를 통해 전송받은 이동 단말기의 동작 메모리에 대한 메모리 사이즈를 저장한다. 여기서 이동 단말기의 메모리 사이즈는 원본 소스 코드를 적용하고자 하는 이동 단말기에 컴파일된 이진 코드를 저장하기 위한 동작 메모리의 용량을 나타내는 것으로서, 이동 단말기의 구조에 따라 미리 알 수 있다.The
도 1에서 상기 제어부(150)는 비저전력 코딩 형식 스캐너(151)와, 저전력 소프트웨어 기술 적용기(153)와, 컴파일러(155)를 포함한다.In FIG. 1, the
상기 비저전력 코딩 형식 스캐너(151)는 미리 정의된 저전력 룰 세트를 근거로 원본 소스 코드(110)를 스캐닝하여 저전력 소프트웨어 기술 적용이 가능한 비저전력 코딩 형식을 검출한 후, 그 검출한 결과를 해당 저전력 소프트웨어 기술 적용으로 인해 코드 사이즈가 변화(증가 또는 유지 또는 감소)하는 기술 별로 분류하여, 저전력 소프트웨어 기술 적용 대상 리스트를 생성한다.The non-low power
상기 저전력 소프트웨어 기술 적용기(153)는 상기 생성된 저전력 소프트웨어 기술 적용 대상 리스트를 근거로, 먼저 저전력 소프트웨어 기술 적용으로 인해 코드 사이즈가 유지 및 감소하는 기술을 원본 소스 코드(110)에 적용하여 제1 저전력 소스 코드(170)를 출력하고, 저전력 소프트웨어 기술 적용으로 인해 코드 사이즈가 증가하는 기술을 우선순위에 따라 이동 단말기의 메모리 사이즈를 고려하여 제1 저전력 소스 코드에 적용하여 최종적으로 저전력 소스 코드(170)로 출력한다.The low power
상기 컴파일러(155)는 상기 저전력 소프트웨어 기술 적용기(153)로부터 저전력 소프트웨어 기술을 적용한 저전력 소스 코드를 전달받은 후, 컴파일을 수행하여 컴파일된 2진 코드 사이즈 정보를 저전력 소프트웨어 기술 적용기(153)로 전달한다. 그리고 저전력 소프트웨어 기술 적용기(153)는 상기 컴파일된 2진 코드 사이즈와 상기 메모리(130)에 저장된 이동 단말기의 메모리 사이즈를 비교한다. The
따라서 상기 본 발명은 미리 정의된 저전력 룰 세트를 근거로 이동 단말의 원본 소스 코드(110)를 스캐닝하여 저전력 소프트웨어 기술 적용이 가능한 비저전력 코딩 형식이 원본 소스 코드 상의 몇 번째 라인에 존재하는지를 검출하고, 이를 통해 생성된 저전력 소프트웨어 기술 적용 리스트를 바탕으로 이동 단말기의 메모리 사이즈를 넘지 않는 초과하지 않는 범위 내에서 원본 소스 코드(110)에 해당 저전력 소프트웨어 기술을 적용할 수 있다.Accordingly, the present invention scans the original source code 110 of the mobile terminal based on a predefined low power rule set to detect on which line on the original source code a non-low power coding format applicable to low power software technology exists. The low power software technology may be applied to the original source code 110 within a range not exceeding the memory size of the mobile terminal based on the generated low power software technology application list.
이하, 제어부(150)에서 수행되는 동작을 아래 도 2 및 도 3에서 상세하게 설명하기로 한다.Hereinafter, operations performed by the
도 2는 본 발명의 실시 예에 따른 이동 단말기를 위한 저전력 소스 코드 생성 방법을 나타낸 순서도이다.2 is a flowchart illustrating a method for generating a low power source code for a mobile terminal according to an embodiment of the present invention.
도 2의 210 단계에서 이동 단말기를 위한 저전력 소스 코드 생성 장치는 원본 소스 코드(110)를 입력 받는다. 그리고 230 단계에서 비저전력 코딩 형식 스캐너(151)는 입력된 원본 소스 코드(110)에 저전력 룰 세트를 적용하여 저전력 소프트웨어 기술 적용이 가능한 비저전력 코딩 형식을 스캐닝하여 저전력 소프트웨어 기술 적용 대상 리스트를 생성한다. 250 단계에서 저전력 소프트웨어 기술 적용기(153)는 상기 저전력 소프트웨어 기술 적용 대상 리스트를 근거로 원본 소스 코드(110)에 해당 저전력 소프트웨어 기술을 적용하여 270 단계에서 저전력 소스 코드(170)를 출력한다. 상기 250 단계에서 원본 소스 코드(110)에 저전력 소프트웨어 기술을 적용하는 방식은 아래 도 3에서 상세히 설명하기로 한다.In
도 3은 도 2에서 저전력 소프트웨어 기술 적용 방식을 상세히 나타낸 순서도이다.FIG. 3 is a flowchart illustrating a method of applying low power software technology in FIG. 2.
이하, 도 3에서 상기 생성된 저전력 소프트웨어 기술 적용 대상 리스트를 근거로 원본 소스 코드(110)에 대해 적용할 저전력 소프트웨어 기술을 결정하고, 원본 소스 코드(110)에 상기 결정된 저전력 소프트웨어 기술들을 적용하여 최종적으로 저전력 소스 코드(170)를 출력하는 방식을 설명하기로 한다.Hereinafter, the low power software technology to be applied to the original source code 110 is determined based on the generated low power software technology application target list in FIG. 3, and the low power software technologies applied to the original source code 110 are finally applied. A method of outputting the low power source code 170 will be described.
도 3의 301 단계에서 저전력 소프트웨어 기술 적용기(153)는 저전력 소프트웨어 기술 적용 대상 리스트를 근거로 저전력 소프트웨어 기술 적용으로 인해 코드 사이즈가 유지 및 감소하는 기술을 원본 소스 코드(110)에 적용하여 제1 저전력 소스 코드를 출력한다. 이때, 301 단계에서 코드 사이즈가 유지 및 감소하는 저전력 소프트웨어 기술을 원본 소스 코드(110)에 적용하였으므로, 출력된 제1 저전력 소스 코드에 대한 컴파일 된 2진 코드 사이즈는 이동 단말의 메모리 사이즈보다 작다.In
도 3의 303 단계에서 저전력 소프트웨어 기술 적용기(153)는 저전력 소프트웨어 기술 적용 대상 리스트를 근거로 저전력 소프트웨어 기술 적용으로 인해 코드 사이즈가 증가하는 저전력 기술들 중 우선순위(예를 들어, 저전력 효과)가 높은 기술을 우선적으로 적용한다. 이때 303 단계에서 코드 사이즈가 증가하는 저전력 소프트웨어 기술을 적용하였으므로, 변경된 해당 소스 코드의 사이즈가 이동 단말기의 메모리 사이즈 보다 큰지 비교하기 위해 307 단계로 진행한다.In
상기 305 단계에서 저전력 소프트웨어 기술 적용기(153)는 상기 저전력 소프트웨어 기술을 적용한 소스 코드를 컴파일러(155)에 전달하여 상기 저전력 소스 코드로 변환 중인 소스 코드의 코드 사이즈를 확인한다.In
그리고 307 단계에서 저전력 소프트웨어 기술 적용기(153)는 확인된 코드 사이즈와 이동 단말기의 메모리 사이즈를 비교하여 코드 사이즈가 큰 경우 309 단계로 진행하고, 코드 사이즈가 작은 경우 311 단계로 진행한다. In
309 단계에서 저전력 소프트웨어 기술 적용기(153)는 상기 제1 저전력 소스 코드에 적용된, 소스 코드가 증가하는 저전력 소프트웨어 기술 중 가장 최근 적용한 저전력 소프트웨어 기술 적용을 취소한다. 그리고 303 단계로 진행하여 다음 우선순위의 저전력 소프트웨어 기술을 적용한 후 다시 코드 사이즈를 확인한다.In
311 단계에서 저전력 소프트웨어 기술 적용기(153)는 상기 저전력 소프트웨어 기술 적용 리스트에 존재하는, 코드 사이즈가 증가하는 모든 저전력 소프트웨어 기술의 적용이 시도되었는지를 판단하여, 모든 저전력 소프트웨어 기술의 적용이 시도되지 않은 경우 상기 303 단계로 다시 진행하고, 모든 저전력 소프트웨어 기술의 적용이 시도된 경우 313 단계로 진행한다. 그리고 상기 313 단계에서 저전력 코딩 형식 적용기(153)는 최종적으로 저전력 소스 코드(170)를 출력한다.In
따라서 상기 본 발명은 미리 정의된 저전력 룰 세트를 근거로 이동 단말을 위한 원본 소스 코드(110)를 스캐닝하여, 저전력 소프트웨어 기술 적용이 가능한 비저전력 코딩 형식을 검출하여, 원본 소스 코드(110)에 해당 저전력 소프트웨어 기술을 적용할 수 있으며, 최적의 코드 사이즈로 생성된 저전력 소스 코드(170)를 이동 단말의 동작 메모리에 전달할 수 있다.Accordingly, the present invention scans the original source code 110 for the mobile terminal based on a predefined low power rule set, detects a non-low power coding format applicable to low power software technology, and corresponds to the original source code 110. Low power software technology may be applied, and the low power source code 170 generated with the optimal code size may be transferred to the operating memory of the mobile terminal.
한편, 본 발명의 상세한 설명에서는 구체적인 실시 예에 관해 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 설명된 실시 예에 국한되어 정해져서는 아니 되며 후술하는 특허청구의 범위뿐만 아니라 이 특허청구의 범위와 균등한 것들에 의해 정해져야 한다.Meanwhile, in the detailed description of the present invention, specific embodiments have been described, but various modifications may be made without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined not only by the scope of the following claims, but also by the equivalents of the claims.
상기 설명한 바와 같이, 본 발명은 원본 소스 코드에서 소비 전력을 줄일 수 있는 코드 부분을 자동으로 찾을 수 있게 함으로써, 소프트웨어의 구조가 복잡해지고 소스 코드의 양이 방대하더라도 최적화된 저전력 소스 코드를 이동 단말기에 적용할 수 있다.As described above, the present invention enables to automatically find the portion of the code that can reduce the power consumption in the original source code, so that even if the software structure becomes complicated and the amount of source code is large, the optimized low power source code is transmitted to the mobile terminal. Applicable
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070039922A KR20080095443A (en) | 2007-04-24 | 2007-04-24 | Method and apparatus for generating low-power source code of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070039922A KR20080095443A (en) | 2007-04-24 | 2007-04-24 | Method and apparatus for generating low-power source code of mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20080095443A true KR20080095443A (en) | 2008-10-29 |
Family
ID=40155102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020070039922A KR20080095443A (en) | 2007-04-24 | 2007-04-24 | Method and apparatus for generating low-power source code of mobile terminal |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20080095443A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010087623A3 (en) * | 2009-01-29 | 2010-10-21 | 엘지전자 주식회사 | Method for controlling transmission power, and apparatus for same |
US20130073883A1 (en) * | 2011-09-20 | 2013-03-21 | Qualcomm Incorporated | Dynamic Power Optimization For Computing Devices |
US9098309B2 (en) | 2011-09-23 | 2015-08-04 | Qualcomm Incorporated | Power consumption optimized translation of object code partitioned for hardware component based on identified operations |
-
2007
- 2007-04-24 KR KR1020070039922A patent/KR20080095443A/en not_active Application Discontinuation
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010087623A3 (en) * | 2009-01-29 | 2010-10-21 | 엘지전자 주식회사 | Method for controlling transmission power, and apparatus for same |
US8811249B2 (en) | 2009-01-29 | 2014-08-19 | Lg Electronics Inc. | Method for controlling transmission power, and apparatus for same |
US9042219B2 (en) | 2009-01-29 | 2015-05-26 | Lg Electronics Inc. | Method for controlling transmission power, and apparatus for same |
US9131451B2 (en) | 2009-01-29 | 2015-09-08 | Lg Electronics Inc. | Method for controlling transmission power, and apparatus for same |
US9215672B2 (en) | 2009-01-29 | 2015-12-15 | Lg Electronics Inc. | Method for controlling transmission power, and apparatus for same |
US9456424B2 (en) | 2009-01-29 | 2016-09-27 | Lg Electronics Inc. | Method for controlling transmission power, and apparatus for same |
US9578606B2 (en) | 2009-01-29 | 2017-02-21 | Lg Electronics Inc. | Method for controlling transmission power, and apparatus for same |
US9801145B2 (en) | 2009-01-29 | 2017-10-24 | Lg Electronics Inc. | Method for controlling transmission power, and apparatus for same |
US20130073883A1 (en) * | 2011-09-20 | 2013-03-21 | Qualcomm Incorporated | Dynamic Power Optimization For Computing Devices |
US8799693B2 (en) * | 2011-09-20 | 2014-08-05 | Qualcomm Incorporated | Dynamic power optimization for computing devices |
US9098309B2 (en) | 2011-09-23 | 2015-08-04 | Qualcomm Incorporated | Power consumption optimized translation of object code partitioned for hardware component based on identified operations |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150012916A1 (en) | Systems and methods for executing an application on a mobile device | |
US10445118B2 (en) | Methods and apparatus to facilitate field-programmable gate array support during runtime execution of computer readable instructions | |
CN105718289B (en) | Component relation establishing method and equipment | |
JP2005222533A (en) | Adaptive dispatch of received messages to code using inter-positioned message modification | |
US9329848B2 (en) | Mechanism for facilitating dynamic and efficient fusion of computing instructions in software programs | |
US20120159439A1 (en) | Using appropriate level of code to be executed in runtime environment using metadata describing versions of resources being used by code | |
CN102929646B (en) | Application program generation method and device | |
KR20140068966A (en) | Efficiently providing multiple metadata representations of the same type | |
CN111143446A (en) | Data structure conversion processing method and device of data object and electronic equipment | |
KR20090091351A (en) | System, method, apparatus and computer program product for providing content selection in a network environment | |
US7761860B2 (en) | Pre-compiling device | |
KR20080095443A (en) | Method and apparatus for generating low-power source code of mobile terminal | |
CN111381661B (en) | Control method, control device, electronic equipment and storage medium | |
CN102460381A (en) | Software extension analysis | |
US9274755B2 (en) | Infrastructure for generating code using annotation and template generators | |
CN108400929B (en) | Data processing method, device, computing equipment and medium | |
CN114201156A (en) | Access method, device, electronic equipment and computer storage medium | |
CN110825425A (en) | Configuration data management method and device, electronic equipment and storage medium | |
CN113704820A (en) | Application log coding method and device and computer readable storage medium | |
US20100023924A1 (en) | Non-constant data encoding for table-driven systems | |
KR20120058801A (en) | System for scanning of anti-malware and method thereof | |
US8739139B2 (en) | Algorithm selection device and algorithm selection method | |
US20120089970A1 (en) | Apparatus and method for controlling loop schedule of a parallel program | |
US20120284700A1 (en) | Modular asl component | |
JPWO2008107936A1 (en) | Software optimization apparatus and optimization method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WITN | Withdrawal due to no request for examination |