• Title/Summary/Keyword: 코드 최적화

Search Result 480, Processing Time 0.023 seconds

Optimizing Constant Value Generation in Just-in-time Compiler for 64-bit JavaScript Engine (64-bit 자바스크립트 적시 컴파일러를 위한 상수 값 생성 최적화)

  • Choi, Hyung-Kyu;Lee, Jehyung
    • Journal of KIISE
    • /
    • v.43 no.1
    • /
    • pp.34-39
    • /
    • 2016
  • JavaScript is widely used in web pages with HTML. Many JavaScript engines adopt Just-in-time compilers to accelerate the execution of JavaScript programs. Recently, many newly introduced devices are adopting 64-bit CPUs instead of 32-bit and Just-in-time compilers for 64-bit CPU are slowly being introduced in JavaScript engines. However, there are many inefficiencies in the currently available Just-in-time compilers for 64-bit devices. Especially, the size of code is significantly increased compared to 32-bit devices, mainly due to 64-bit wide addresses in 64-bit devices. In this paper, we are going to address the inefficiencies introduced by 64-bit wide addresses and values in the Just-in-time compiler for the V8 JavaScript engine and propose more efficient ways of generating constant values and addresses to reduce the size of code. We implemented the proposed optimization in the V8 JavaScript engine and measured the size of code as well as performance improvements with Octane and SunSpider benchmarks. We observed a 3.6% performance gain and 0.7% code size reduction in Octane and a 0.32% performance gain and 2.8% code size reduction in SunSpider.

C++ Template-based Fixed-Point Arithmetic Library (C++ 템플릿 기반의 Fixed-Point 연산 라이브러리)

  • Hwang, Seon Joong;Kim, Seon Wook;Min, Byung Gueon
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2010.04a
    • /
    • pp.49-52
    • /
    • 2010
  • 디지털 신호처리 알고리즘들은 실제 시스템에 적용할 때 임베디드 시스템 등 하드웨어의 성능과 소비전력 및 비용에 제약이 있을 경우 연산 정밀도가 높은 floating-point 연산 대신 제한된 정밀도와 적은 연산 비용을 요구하는 fixed-point 연산을 사용하여 구현한다. 시스템의 개발단계에서는 적용할 알고리즘을 floating-point 연산을 이용한 코드를 먼저 작성한 후 이를 fixed-point 연산으로 대체하는 과정을 거치게 되는데, 이는 숙련된 개발자와 상당한 양의 개발기간을 요하는 까다로운 작업이다. 이에 본 연구에는 코드작성 편의를 높이고 개발기간을 단축하기 위해 C++ template 기반의 fixed-point 연산 라이브러리를 개발하였다. 이는 floating-point 연산 코드와 fixed-point 연산 코드를 별도로 개발할 필요 없이 하나의 코드를 이용하여 자유로이 연산 정밀도를 지정할 수 있으며 개발자는 기존의 floating-point 연산을 이용하는 코드를 작성하는 것처럼 쉽게 코드를 작성할 수 있도록 한다. 또한, template 기반으로 작성되어 기존의 연구들과 달리 추가적인 작업도구 없이도 범용 C++ 컴파일러가 최적화된 코드를 생성할 수 있도록 되어있는 것이 특징이다.

An Algorithm for Optimal Code Motions (최적화 코드 모션을 위한 알고리즘)

  • Shin, Hyun-Deok;Sim, Son-Kweon;Ahn, Heui-Hak
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2000.04a
    • /
    • pp.122-126
    • /
    • 2000
  • 본 논문에서는 코드 최적화를 위하여 계산적으로나 수명적으로 제한이 없는 배정문 모션 알고리즘을 제안한다. 이 알고리즘은 지나친 레지스터의 사용을 막기 위하여 불필요한 코드 모션을 억제한다. 또한, 본 논문에서는 기존 알고리즘의 술어의 의미가 명확하지 않은 것을 개선하였고 노드 단위 분석과 명령어 단위 분석을 혼용했기 때문에 발생하는 모호함도 개선하였다. 따라서, 제안한 알고리즘은 불필요하게 중복된 수식이나 배정문의 수행을 피하게 함으로써, 프로그램의 불필요한 재계산이나 재실행을 하지 않게 하여 프로그램의 능률 및 실행시간을 향상시킨다.

  • PDF

An Optimization Technique to Improve Readability of CSS (CSS 가독성 향상을 위한 최적화기법)

  • Jung, Woo-Sung;Lee, Eun-Joo
    • Journal of the Korea Society of Computer and Information
    • /
    • v.15 no.7
    • /
    • pp.99-108
    • /
    • 2010
  • For effective maintenance for web applications, it is necessary to improve the readability of the source pages. Though CSS(Cascading Style Sheet) belongs to pure presentation layer in various web constituent entities, CSS codes are often used by inlning and they are sometimes automatically generated by web development tools. The existing studies on CSS optimization have only focused on reducing the size of codes and they did not incorporate the readability or the reusability. In this paper, CSS codes are structured and several criteria for readability are defined to improve the readabilty and reusability. Based on them, the algorithm to improve the readability are proposed. Finally, case study are presented to show the applicability of the proposed algorithm.

Optimization of Dynamic Terms in Core Overtemperature Delta-T Trip Function (노심 과온도 Delta-T 보호식의 동적보정함수 최적화)

  • Park, Jin-Ho;Yoon, Han-Young;Kim, Hee-Cheol;Lee, Chong-Chul
    • Nuclear Engineering and Technology
    • /
    • v.24 no.3
    • /
    • pp.236-242
    • /
    • 1992
  • The characteristics of dynamic terms in the core overtemperature Delta-T trip function are investigated for various time constants and the effects on the trip setpoint are studied for the uncontrolled RCCA bank withdrawal at power event by using the NLOOP and the PUMA code. Based on this study, a procedure determining the optimal dynamic term is suggested and accordingly the optimum time constants are determined for the KORI 3&4 transition core. It reveals that the vessel average temperature-lead-lag term is the most sensitive in DNB trip setpoint and the optimized time constants are 21 seconds for lead and 4 seconds for lag.

  • PDF

NC Code Optimization Based on an Improved Cutting Force Model (향상된 절삭력 모델 기반의 NC 코드 최적화)

  • 이한울;고정훈;조동우
    • Proceedings of the Korean Society of Precision Engineering Conference
    • /
    • 1997.10a
    • /
    • pp.37-42
    • /
    • 1997
  • Off-line feed rate scheduling is an advanced methodology to automatically determine optimum feed rates for the optimization of NC code. However, the present feed rate scheduling systems have lim~tations to generate the optimized NC codes because they use the material removal rate or non-generalized cutting force model. In this paper, a feed rate scheduling system based on an improved cutting force model that can predrct cutting forces exactly in general machining was presented. Original blocks of NC code were divided to small ones with the modified feed rates to adjust the peak value of cutting forces to a constant vale. The characteristic of acceleration and deceleration for a given machrne tool was considered when off-line feed rate scheduhng was performed. Software for the NC code optimization was developed and applied to pocket machining simulation.

  • PDF

경수로핵연료 하단고정체 유로판의 두께 최적화

  • 임정식;손동성
    • Nuclear Engineering and Technology
    • /
    • v.27 no.6
    • /
    • pp.898-910
    • /
    • 1995
  • 기존경수로 핵연료의 연소도를 크게 증가시키는 고연소도 핵연료 및 미래형 핵연료에서는 연료봉의 축방향 조사성장이 증가하게 되고 이와 같이 증가된 축방향 연료봉 성장을 수용하기 위해서는 상.하단 고정체 사이의 간격이 더 필요하게 된다. 이 요구되는 상.하단고정체 사이의 축방향 공간을 얻기 위하여 기존 국산핵연료 하단고정체 유로판 및 이물질여과 하단고정체에 대하여 응력강도를 기준으로 두께최적화 계산을 수행하였다. 계산은 범용 유한요소 코드인 ANSYS 코드를 이용하였다. 이 두께 최적화에 의해 기존의 국산 17$\times$17 경수로 핵연료의 하단고정체에서는 지지 Leg의 폭과 길이를 증가시킴으로써 유로판의 두께 감소를 약 5.1mm 줄일 수 있음을 알 수 있고, DRBEP용 하단고정체에서는 약 4.6mm의 두께 감소가 가능한 것으로 해석되었다.

  • PDF

A Study on Efficient Thesaurus Construction for Component Retrieval (컴포넌트 검색을 위한 효율적 시소러스 구축에 관한 연구)

  • Han, Jung-Soo
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2002.11c
    • /
    • pp.1957-1960
    • /
    • 2002
  • 본 연구는 컴포넌트의 효율적인 검색을 위하여 각 컴포넌트의 코드 정보를 분석하고, 카이제곱 검정 방법을 통하여 분석한 컴포넌트 정보인 term들을 최적화하였다. term의 최적화를 위한 시뮬레이션에서 전체 term 중 약 20%가 제거되었다. 또한 최적화된 term들을 이용하여 term-component 관계를 이용한 매칭, 비매칭 관계 계산을 통하여 term-term 사이의 유의어 매트릭스를 구성함으로써 시소러스를 구축하였다. 시소러스를 통한 검색 결과 최적화 이전의 검색결과와 성능이 비슷하게 나타나 본 연구의 시소러스 구축이 더 효율적임을 알 수 있었다.

  • PDF

Design and Implementation of Java AOTC for Embedded System (내장형 시스템을 위한 자바 AOTC의 설계와 구현)

  • Park JongKuk;Jung Dong-Heon;Bae SungHwan;Lee Jaemok;Moon Soo-Mook
    • Proceedings of the Korean Information Science Society Conference
    • /
    • 2005.11a
    • /
    • pp.772-774
    • /
    • 2005
  • 우리는 내장형 시스템에서 자바의 성능 문제를 해결하기 위해 수행시간 이전에(ahead-of-time) 자바 바이트코드를 기계어 코드로 변환하는 AOTC를 개발하였다. 우리가 개발한 AOTC는 자바 클래스 파일을 읽어서 C코드로 변환한 후에 이를 C컴파일러로 컴파일하는 방식으로 동작한다. 이러한 방법으로 짧은 기간안에 하드웨어 아키텍처에 종속적이지 않으면서도 안정적인 고성능의 자바 실행 환경을 구축할 수 있었다. 본 논문에서는 AOTC의 전체 구조에서부터 C코드를 생성하는 방법 및 예외 처리와 쓰레기 수집기(GC)를 지원하기 위한 방법들에 대해서 다룬다. 또한 C컴파일러에 의한 최적화의 한계를 극복하기 위해 자바에 특화된 최적화를 AOTC에 포함하였는데 이에 대해서도 설명한다. 우리의 AOTC를 Sun Microsystems의 J2ME CDC VM인 CVM위에 적용해본 결과 벤치마크에 따라서 평균 $5\~14$배의 성능 향상을 관찰 할 수 있었다.

  • PDF

Performance Improvement of CELP Speech Coder (CELP 음성 부호화기의 성능 향상 방법)

  • 박호종
    • Proceedings of the Acoustical Society of Korea Conference
    • /
    • 1998.06e
    • /
    • pp.289-292
    • /
    • 1998
  • 본 논문에서는 CELP 음성 부호화기의 성능을 향상시키는 방법을 제안한다. 제안된 방법은 최적 코드북 검색 과정에서 추가적인 알고리듬의 지연 없이 미래 정보를 이용하고 두 인접한 코드북 부프레임 사이의 동시 최적화를 통하여 음성 부호화기의 성능을 향상시킨다. 또한, 제안된 코드북 검색 과정의 계산량을 조절하기 위한 방법도 제공된다. 제안된 방법의 성능을 검증하기 위하여 IS-96A QCELP 음성 부호화기를 이용하여 합성음의 스펙트럼과 Segmental SNR로 성능을 측정하는 모의실험을 실시하였으며, 제안된 방법을 적용한 QCELP 음성 부호화기가 기존의 QCELP에 비하여 향상된 성능을 보여주었다.

  • PDF