Microsoft MVP성태의 닷넷 이야기
x64 : 1. 64bit 주소 지정이 아닌 32bit 변위값 지정 [링크 복사], [링크+제목 복사],
조회: 10420
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Everything You Need To Know To Start Programming 64-Bit Windows Systems
; https://www.sysnet.pe.kr/Default.aspx?mode=2&sub=5&pageno=0&detail=1&wid=36

위에 공개한 MSDN 토픽에 대한 한글 PPT 파일을 보신 분들은 x64 에서는 Call, JMP 등의 주소 offset 값으로 64bit 영역을 자유롭게 지정하기 위한 8byte 값이 아닌 여전히 4byte 변위값이 쓰인다는 것을 아실 것입니다.

실제로 이에 대해서 C 코드와 Assembly 코드를 함께 살펴보면서 파헤친 토픽이 아래의 것들입니다.

"Hello, world!" - The Details - Part 1
; http://blogs.msdn.com/mlacey/archive/2006/07/21/674099.aspx

"Hello, world!" - The Details - Part 2
; http://blogs.msdn.com/mlacey/archive/2006/07/26/679659.aspx

아마도, 기존 코드와의 호환을 위해 이렇게 되고 있는 것 같은데요.

32bit 변위값을 사용하기 때문에 문제가 되는 것은 단 하나입니다. 즉, 호출되는 측의 코드가 JMP, CALL 을 하는 명령어 위치에서 +/- 2GB 내에 있어야 한다는 것입니다.

뭐^^ 솔직히 이런 부분들은 compiler 개발자가 고민해야 할 사항이긴 하지만, 그래도 x64 에서 Disassembly 창으로 디버깅을 해야 할 상황이라면 이쯤은 알아두셔야 겠지요. ^^








[최초 등록일: ]
[최종 수정일: 8/12/2006]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  [38]  39  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
239정성태4/18/20069196Display a Web Page in a Plain C Win32 Application
238정성태4/17/20069202ASP.NET 2.0 의 Provider 관련 쪽 소스 공개
237정성태4/17/20068964Microsoft Application Verifier
236정성태4/17/200610087IIS6 - IE static resource caching problem
235정성태4/13/20068728"Atlas" Control Toolkit for April CTP Released
234정성태4/13/20069080Access Visual Studio 2005 Team System From Macintosh and UNIX Systems, and from within the Eclipse IDE
233정성태4/13/20068838More Workflow Videos
232정성태4/13/20069845Microsoft Visual C++ 2005 Redistributable Package
231정성태4/13/20069387Windows Presentation Foundation Hands-On-Labs - February 2006 CTP
230정성태4/13/20069256Microsoft Management Model Designer
229정성태4/13/200610295Discovery Wizard for SharePoint
228정성태4/13/20069848TeamPlain Web Access for Team System
227정성태4/13/20069570Scrum for Team System Released
226정성태4/13/20069569Visual Studio Team Foundation Server MSSCCI Provider Version 1.0
224정성태4/13/20069213VC++ - GroupLab Component Library
223정성태4/13/20068279MSBuild Community Tasks Project releases new version
225정성태4/13/20067776    답변글 Visual Studio 2005 Web Application Projects (RC1)
222정성태4/13/20068793Visual Studio 2005 Security Features and Tools
220정성태6/8/20068598Shared Source Common Language Infrastructure 2.0 Release [1]
219정성태8/4/20068535Simple List Extensions Specification
218정성태4/13/200690773rd party library - EZShellExtensions.Net 1.0 [1]
217정성태4/13/20068964Bug Details: GC fails to load in server mode if config file contains none ASCII characters
215정성태4/13/20069078http://www.400plusdifferences.com/
214정성태4/13/20067799Team Foundation Server, Biztalk 2006
216정성태4/13/20068999    답변글 Team Foundation Server 시험판 공개 다운로드
213정성태4/13/20068962Introduction to the MSN Messenger Activity SDK
... 31  32  33  34  35  36  37  [38]  39  40  41  42  43  44  45  ...