차장님과 SAP Jco 관련 에러를 해결하다가 systemWOW64 폴더를 처음 보게되었다.

system32는 종종 봐왔지만, systemWOW64는 정말 처음 보는 애였다. ㅎㅎ 


겉보기에는 이름 그대로 systemWOW64는 64bit 프로세스를 처리할 것 같고, system32는 32bit 용을 처리할 것 같아 보였다.

하지만 실은 그 반대라고 차장님이 설명해주셔서 따로 적어놓았다가 이렇게 정리해둔다.


# System32 와 SystemWOW64 차이


64bit Windows 운영체제에서 파일을 위치시킬 때, 

64bit용 DLL은 system32에, 32bit용 DLL은 systemWOW64에 위치시킨다.

(C:\Windows\System32, C:\Windows\System32)


왜 헷갈리게 이렇게 교차로 match되어 들어갈까?? 


궁금해서 그 이유를 찾아보다가 MS에서 naming 쪽을 담당했던 직원의 인터뷰 자료를 찾게 되었다.

이름 안에 WOW가 들어가는 것도 정말 WOW 였다.....ㅎㅎ


—And what about System32 is that yours?

—Yep. I thought, "these files are 32 bit files. So I'll put them here."

—And that was pretty successful?

—Yes. I did such a good job naming it System32, that nowadays it contains all the 64 bit files as well.

—Then what happens to the 32 bit version of the 64 bit files. Where do they go?

—Well they can't go in System32, because on a 64 bit machine, System32 is where the 64 bit files go. So if we're running a 32 bit executable we lie to the executable and tell it that "System32" points at another folder, called SysWOW64 and that's where we stick the 32 bit files.

—Why is there a 'WOW' in the middle of the name?

—I was typing System64 and half way through I just thought: "WOW, nature is beautiful!"

—And the 32 bit files, they go in SysWOW64, since the 64 bit files are in System32?

        —Yep. (Laughing) Oh I took a lot of meth that day, my friend. 



이와 마찬가지로 Program Files(x86) 폴더도 32bit 용 파일들이 위치하는 곳이다.  그냥 Program Files 폴더에는 64bit 용 파일들이 위치하고 ㅎㅎ



예전에는 정말 폴더들도 아무 생각없이 봤었는데 요새는 한 번씩 생각하게 된다 ㅎㅎ 

얘는 무슨 역할을 하는 애지?? 



많이 궁금해하고, 많이 배워야지 :) 


'JAVA' 카테고리의 다른 글

예외처리 관련 참고문서  (0) 2017.06.11
로깅(Logging) 참고문서  (0) 2017.06.11
JAVA - 향상된 for 문 (from Java1.5)  (0) 2017.02.26
SAPJCO 연동 설정  (0) 2017.02.26
JAVA_리팩토링  (1) 2017.01.08

+ Recent posts