본문 바로가기

프로그래밍

(357)
64비트 : 64비트 시스템의 32비트 프로세스에 붙은 64비트 DLL 다국어 편집기 madedit 32비트를 64비트 윈도우에서 실행한 상황. 해당 프로세스에 5개의 64비트 dll이 달려있다. wow64*.dll 3 개와 apisetschema.dll (검색해 보니 virtual dll과 logical dll을 매핑해 주는 역할을 한단다.), 그리고 ntdll.dll 이 있다. ntdll은 64비트 버전과 32비트 버전 두 개가 달려 있다. 너무 당연한 이야기인지도 모르겠지만, 64비트 dll도 4G 영역을 넘지 않는 곳에 배치되어 있다. 그런데 어떻게 로드될 수 있는 건지? 32비트 프로세스 안에서 어떤 식으로 주고받고 동작하는 걸까? 궁금하다.
[번역] (dll) __stdcall 함수와 GetProcAddress http://groups.google.com/group/microsoft.public.vc.language/browse_thread/thread/e5c9f986c51729dd From: "Kürþat" 제목 : (dll) __stdcall 함수와 GetProcAddress Subject: (dll) __stdcall functions and GetProcAddress Date: Thu, 7 May 2009 00:28:54 +0300 Message-ID: Newsgroups: microsoft.public.vc.language Hi, 아주 간단한 "int Add (int, int)" 함수를 익스포트 하는 간단한 dll을 만들었고, LoadLibrary 와 GetProcAddress 를 이용해서 그 함수를 ..
2004년 개발 시작하며 적었던 노트 2004년 아무것도 모르고 거의 처음 투입되었던 프로젝트에서 개발하며 적었던 노트다. 노트 제목은 버그 사냥기라고 적었었다. 열심히 해 보려고 이것저것 기록하려고 했었는데, 뭐 만났던 문제를 다 적어던 건 아니지만, 어제 저녁에 우연히 다시 읽어보니 재미있었다. 좀 부끄러운 것도 있기는 한데, 재미도 있어서, 나의 기록으로 남겨본다.
[Euler Project 164] 연속된 세 개의 자리수의 합이 9를 넘지 않는 20자리수 연속된 세 개의 자리수의 합이 9를 넘지 않는 20자리수의 갯수를 구하라. ( http://projecteuler.net/index.php?section=problems&id=164 ) def get_count(n1, n2, remain): #print " "*(20 - remain), n1, n2, remain if cache.has_key((n1, n2, remain)): return cache[(n1, n2, remain)] count = 0 sum = n1 + n2 if remain == 1: cache[(n1, n2, remain)] = 10 - sum return 10 - sum for n3 in range(10 - sum): count += get_count(n2, n3, remain - 1..
[번역] 팩 디바이스-인디펜던트 비트맵 Windows Graphics Programming Win32 GDI and DirectDraw Feng Yuan Chapter 10 Bitmap Basics 10.1 Device-Independent Bitmap Formats Packed Device-Independent Bitmap The BMP file format is the format in which a DIB is stored in an independent disk file. We mentioned that a BMP file contains a file header, a bitmap information block, and a pixel array. The file header serves an information purpose dur..
Windows Job Object (ie와 acrd32 비교) 윈도우 잡 객체 중에 ie와 acrd32 의 객체를 비교해 봤다. 비교한 원본은 windbg 를 통해 뽑아본(윈도우즈인터널즈 참조) 내용이다.
[TIP] cl 로 .pdb 만들기 platform sdk 만 깔고 컴파일 할 때 pdb 를 같이 생성하려면 cl /Zi 소스.cpp 이렇게 하면 된다. pdb 필요 없으면 cl 소스.cpp 이렇게 하면 되고.
JVM 1Gb 이상의 메모리를 잡지 못한다. http://forums.oracle.com/forums/thread.jspa?threadID=816774&tstart=644 Re: JVM cannot allocate more than ~1Gb Re: JVM 1Gb 이상의 메모리를 잡지 못한다. Posted: 2005. 1. 13 오전 2:05 in response to: BEAGuest in response to: BEAGuest Mark, The heap is allocated in the virtual memory space at startup. Before the heap is allocated, different shared libraries are being loaded into the process memory space, and thei..