Computer
-
Compilation of C++ to binaryComputer/Programming 2008. 1. 11. 15:41
array 사용이 컴파일되었을 때의 모양 일반적인 local variable의 경우 mov [ebp+var_38], 0 ; i = 0 과 같이 ebp 레지스터에 대한 상대 위치를 이용하여 표현한다. array도 마찬가지인데 mov [ebp+eax*4+var_2C], ecx ; a[i] = i; 과 같이 ebp에 대한 상대 위치로 표현한다. MOV r/m32, r32 MOV r32, r/m32 MOV r32, imm32 같은 instruction을 사용한다. stack guard 같은 것을 사용하려면 첫번째 argument가 r/m32인 것만 찾으면 되는 것일까? function pointer가 컴파일되었을 때의 모양 function pointer 값을 배열에 assign할 때 fp[0] = &a; // ..
-
Windows XP Physical Memory SizeComputer/Software 2007. 11. 14. 19:43
VMWare를 돌리다 보니 메모리가 2GB로 부족한 듯 하여 512MB 4개를 빼고, 1GB 4개를 넣었다. BIOS에서는 4개가 정상적으로 들어가 있다고 나온다. 그런데, Windows XP를 부팅하고 나니 3.5GB Physical Memory가 뜬다. 원인을 알아보니, 32bit OS에서는 4GB Address Space에 다른 장치들이 사용하는 부분이 있어서 (Memory Mapped I/O 인 듯) 4GB를 설치해도 3GB 혹은 3.5GB가 나오게 된다는 것이다. 그래서 억울하면 64bit OS를 설치하라고 한다. 사용하는 어플리케이션의 호환성 때문에 Windows Vista는 도저히 설치할 수 없는 상황이라서, 그냥 3.5GB에 만족하는 수밖에 없는 것 같다. 차라리 하나는 512MB를 남겨둘..
-
Windows 재설치후 전에 사용하던 NTFS 하드 접근Computer/Software 2007. 11. 7. 11:32
Windows를 재설치 하고 나서 다른 NTFS 디스크에서 파일이 읽히지 않거나 Write할 수가 없어 Access Denied란 메시지가 나오는 경우가 생긴다. NTFS 하드에서 보안 설정이 되어 있어서 해당 사용자만 볼 수 있었기 때문인데, Windows를 재설치 하고 나면 계정 이름이 같더라도 ID가 달라지기 때문에 수동으로 바꿔야 한다. 먼저 regedit를 실행하고 HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft Windows NT -> Current Version -> Winlogon -> Special Accounts -> UserList 에서 DWORD값 Administrator를 1로 해 주고 재부팅 다음 저장 폴더의 속성에서 보안탭을 클릭한 후 모든 권한을..
-
openfilesComputer/Programming 2007. 11. 7. 11:21
현재 열려 있는 파일을 볼 수 있다. OPENFILES /parameter [arguments] Description: Enables an administrator to list or disconnect files and folders that have been opened on a system. Parameter List: /Disconnect Disconnects one or more open files. /Query Displays files opened locally or from shared folders. /Local Enables / Disables the display of local open files. Note: Enabling this flag adds performance overh..
-
CMD 창에서 새 창으로 명령 실행하기Computer/Programming 2007. 11. 6. 00:18
CMD 창에서 HELP START 하면 START : Starts a separate window to run a specified program or command. START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] [/WAIT] [/B] [command/program] [parameters] "title" Title to display in window title bar. path Starting directory B Start application without creating a new window. The ap..
-
컨텍스트 메뉴에서 CMD Prompt 실행Computer/Programming 2007. 10. 30. 16:33
컨텐스트 메뉴에서 CMD prompt 실행하기 레지스트리를 고치면 된다. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\CmdPrompt] @="Command &Line Here" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\CmdPrompt\command] @="cmd.exe %L" Visual Studio 8 커맨드창으로 하려면 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\CmdPrompt] @="Command &Line Here" [HKE..