본문 바로가기
728x90

전체278

Lookahead buffer All messages from thread Message 1 in thread 보낸 이:An Jung Sun (crete@garnets.com) 제목:What is a meaning of "Lookahead"? 뉴스 그룹:comp.os.ms-windows.programmer.nt.kernel-mode View this article only 날짜:1998/08/03 hi.. I want to know that meaning of "lookahead". I am developing the NDIS driver.... Can anyone help me? Message 2 in thread 보낸 이:David (qqqq@xxx.yyy.zzz) 제목:Re: What is a meaning of "Lookahe.. 2002. 12. 4.
#, ## ※ 프리프로세서문을 위한 연산자 프리프로세서문 내에서만 사용할 수 있는 연산자들이 있는데, 다음과 같이 3개가 있다. ┌────────────────────────────────────────────┐ │ #, ##, defined │ └────────────────────────────────────────────┘ #과 ##은 주로 #define을 사용하여 매크로를 정의할 때 사용되는 연산자들로 #은 바로 뒤의 인 자를 스트링으로 바꾸어주는 역할을 한다. 예를 들어 어떤 정수 변수의 이름과 그 값을 출력시키 는 매크로를 작성하고자 할 때 다음과 같이 하면 된다. ┌────────────────────────────────────────────┐ │ #define PRI(x) printf(#x "= %.. 2002. 12. 4.
C Bit Fields MSDN Home C Bit Fields In addition to declarators for members of a structure or union, a structure declarator can also be a specified number of bits, called a 밷it field.?Its length is set off from the declarator for the field name by a colon. A bit field is interpreted as an integral type. Syntax struct-declarator : declarator type-specifier declarator opt : constant-expression The constant-expr.. 2002. 12. 4.
__cdecl을 사용하는 이유 ? 대개의 언어들은 함수 또는 프로시져를 호출할 때 스택을 통해서 인자를 전달합니다. 이 때 인자를 전달하는 방식이 여러가지가 있을 수 있습니다. 예를 들어 첫번째 인자를 먼저 스택에 넣을 수도 있고, 아니면 마지막 인자를 먼저 스택에 넣을 수도 있겠죠. 또한, 스택에 넣은 인자를 누가 제거하느냐의 차이가 있을 수도 있습니다. (호출한 함수가 할 수도 있으며, 호출당한 함수가 할 수도 있습니다) C 방식은 인자 전달시 (순서가 어떻게 되는지는 잊어버렸는데) 호출한 함수에서 다시 인자를 꺼내서 제거하는 방식입니다. 어셈블리 코드로 보면 push argument1 push argument2 (1이 먼저인지 2가 먼저인지는 가물가물...) call function pop argument2 pop argument1.. 2002. 12. 4.
728x90