Skip to Content
이펙티브 러스트
book

이펙티브 러스트

by 데이비드 드라이스데일, 남기혁
October 2024
Beginner to intermediate
344 pages
7h 44m
Korean
Hanbit Media, Inc.
Content preview from 이펙티브 러스트
323
6
표준 러스트를 넘어서
네임 맹글링
컴파일 방식 언어는 대부분 프로그램의 여러 부분을 별도의 덩어리 (객체 파일) 단위의 기계어
로 변환하고 나서, 각 부분을 링커로 결합해서 완전한 프로그램으로 만드는
분리 컴파일
separate
compilation
방식을 따른다. 따라서 프로그램 소스 코드에서 일부분만 변경됐을 때는 해당 객체 파
일만 다시 생성하고, 링크 단계에서는 변경된 객체와 나머지 객체를 결합하는 방식으로 프로그
램을 다시 빌드한다.
링크 단계는 간단히 말해 점 잇기
join
-
the
-
dots
작업과 같다.
10
객체 파일 중에서 어떤 것은 함수와
변수를 정의하고, 또 어떤 것은 컴파일 타임에는 제공되지 않는 다른 객체의 정의를 사용한다
는 플레이스홀더 마커를 갖는다. 링커는 이 두 가지 파일을 연결한다. 즉, 컴파일된 코드에 있
는 플레이스홀더가 모두 구체적인 정의에 대한 레퍼런스로 채워진다.
링커는 이렇게 플레이스홀더와 정의를 연결하는 작업을 단순히 이름이 일치하는지 검사하는
방식으로 처리한다. 따라서 이런 연결 관계에 대한 글로벌 네임스페이스를 갖게 된다.
예전에는 이것만으로도
C
언어 프로그램을 링크하는 데 충분했다. 이름 하나를 재사용할 방법
이 없었기 때문이다. 그래서 함수 이름이 객체 파일에 그대로 표시된다. 따라서
ib1
_
process ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

이펙티브 타입스크립트

이펙티브 타입스크립트

Dan Vanderkam
파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리

Publisher Resources

ISBN: 9791169212946