tgool
Tgool
tgool
전체 방문자
오늘
어제
  • 분류 전체보기
    • Data Science
      • AI
      • Data Mining
      • ML(Machine Learning)
    • Computer Science
      • 자료구조
      • 알고리즘
      • 시스템 프로그래밍
      • 운영체제
      • 컴퓨터 구조
      • 컴퓨터 네트워크
      • 데이터 베이스
      • 파이썬
      • 자바
      • 아두이노
    • Math
      • 통계학
      • 확률론
      • 선형대수학
      • 수리통계학
      • 회귀분석
    • TOFEL
    • Git
    • Plan
    • Book
    • Working out
      • 영양과 생활
      • 운동 정보
      • 운동 기록

인기 글

최근 글

최근 댓글

hELLO · Designed By 정상우.
tgool

Tgool

Computer Science/컴퓨터 구조

[CSAPP] 7.3 Object Files(목적 파일)

2023. 2. 15. 10:32

학습 주제

Object File의 3가지 종류와 여러 system에 따른 Object file format에 대해 학습했다.

정리한 내용

7.3 Object Files(목적 파일)

위에서 언급되왔던 object file에 대해서 알아볼 것이다.

세가지 형식의 object files

  1. Relocatable object file
    1. binary code와 data를 포함
    2. executable object file을 생성하기 위해, compile time때 다른 relocatable object file과 결합될 수 있는 형식이다.
  2. Executable object file
    1. binary code와 data를 포함
    2. memory에 바로 복사될 수 있다.
    3. 실행 가능하다.
  3. shared object file
    1. relocatable object file 중 특별한 type이다.
    2. load time이나 run time 때, 동적으로 memory에 load되거나 link될 수 있다.

Object module V.S. Object file

object module : byte-sequence를 말한다.

object file : object module이 file로 저장된 것을 말한다(disk에 저장)

여기서는 이 두개를 번갈아가며 같은 의미로 사용하려 한다.

Object File Formats 종류

  1. Unix system(from Bell Labs) : a.out format
    1. 현재 실행 가능한 file을 a.out file로 참고되기도 한다.(gcc의 default program 이름)
  2. Window : Portable Executable(PE) format
  3. Mac OS-X : Mach-O format
  4. Modern x86-64 Linux & Unix system : Executable and Linkable Format(ELF)

개요에서 언급했다시피, 앞으로의 설명은 이 ELF로 설명할 것이다.

'Computer Science > 컴퓨터 구조' 카테고리의 다른 글

[CSAPP] 7.5 Symbols and Symbol Tables(심볼과 심볼테이블)  (0) 2023.02.15
[CSAPP] 7.4 Relocatable Object Files(재배치 가능 목적 파일)  (0) 2023.02.15
[CSAPP] 7.2 Static Linking(정적연결)  (0) 2023.02.15
[CSAPP] 7.1 Compiler Drivers(컴파일러 드라이버)  (0) 2023.02.15
[CSAPP] 6.6 Putting It Together: The Impact of Caches on Program Performance(프로그램 성능에 대한 캐시의 영향)  (0) 2023.02.15
    'Computer Science/컴퓨터 구조' 카테고리의 다른 글
    • [CSAPP] 7.5 Symbols and Symbol Tables(심볼과 심볼테이블)
    • [CSAPP] 7.4 Relocatable Object Files(재배치 가능 목적 파일)
    • [CSAPP] 7.2 Static Linking(정적연결)
    • [CSAPP] 7.1 Compiler Drivers(컴파일러 드라이버)
    tgool
    tgool

    티스토리툴바