Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUnexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 20:16
professionalChesnokov Yuriy7-Aug-08 20:16 
AnswerRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 21:13
toxcct7-Aug-08 21:13 
AnswerRe: Unexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 22:22
professionalChesnokov Yuriy7-Aug-08 22:22 
GeneralRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 22:27
toxcct7-Aug-08 22:27 
AnswerRe: Unexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 22:29
professionalChesnokov Yuriy7-Aug-08 22:29 
GeneralRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 22:32
toxcct7-Aug-08 22:32 
AnswerRe: Unexpected #endif with stdafx.h Pin
Mark Salsbery8-Aug-08 8:55
Mark Salsbery8-Aug-08 8:55 
QuestionDWORD PTR [modified] Pin
vikramlinux7-Aug-08 19:52
vikramlinux7-Aug-08 19:52 
HI all,
I have assembly generated code of an simple program

C++ code:
int main(int argc, char* argv[])
{
	int i =10;
	int j =20;
	int k = i+j;

	return 0;
}


some assembly code generated of out it is:

PUBLIC	_main
;	COMDAT _main
_TEXT	SEGMENT
_i$ = -4
_j$ = -8
_k$ = -12
_main	PROC NEAR					; COMDAT

; 8    : {

	push	ebp
	mov	ebp, esp
	sub	esp, 76					; 0000004cH
	push	ebx
	push	esi
	push	edi
	lea	edi, DWORD PTR [ebp-76]
	mov	ecx, 19					; 00000013H
	mov	eax, -858993460				; ccccccccH
	rep stosd

; 9    : 	int i =10;

	mov	DWORD PTR _i$[ebp], 10			; 0000000aH

; 10   : 	int j =20;

	mov	DWORD PTR _j$[ebp], 20			; 00000014H

; 11   : 	int k = i+j;

	mov	eax, DWORD PTR _i$[ebp]
	add	eax, DWORD PTR _j$[ebp]
	mov	DWORD PTR _k$[ebp], eax

; 12   : 
; 13   : 	return 0;

	xor	eax, eax

; 14   : }


My question is:
What is DWORD PTR syntax is
in following line
lea	edi, DWORD PTR [ebp-76]


modified on Friday, August 8, 2008 5:46 AM

AnswerRe: DWORD PTR Pin
SandipG 7-Aug-08 19:56
SandipG 7-Aug-08 19:56 
AnswerRe: Off Topic Pin
toxcct7-Aug-08 21:11
toxcct7-Aug-08 21:11 
GeneralRe: Off Topic Pin
vikramlinux7-Aug-08 22:34
vikramlinux7-Aug-08 22:34 
GeneralRe: Off Topic [modified] Pin
toxcct7-Aug-08 22:36
toxcct7-Aug-08 22:36 
AnswerRe: DWORD PTR Pin
Mark Salsbery8-Aug-08 9:00
Mark Salsbery8-Aug-08 9:00 
AnswerRe: DWORD PTR Pin
Dan9-Aug-08 21:31
Dan9-Aug-08 21:31 
GeneralRe: DWORD PTR Pin
vikramlinux10-Aug-08 18:51
vikramlinux10-Aug-08 18:51 
QuestionSetWindosLong and CallWindowProc Pin
Reese Wang7-Aug-08 19:51
Reese Wang7-Aug-08 19:51 
AnswerRe: SetWindosLong and CallWindowProc Pin
Hamid_RT7-Aug-08 23:19
Hamid_RT7-Aug-08 23:19 
QuestionLogical Drive Pin
Davitor7-Aug-08 19:21
Davitor7-Aug-08 19:21 
AnswerRe: Logical Drive Pin
SandipG 7-Aug-08 20:11
SandipG 7-Aug-08 20:11 
GeneralRe: Logical Drive Pin
Davitor7-Aug-08 20:20
Davitor7-Aug-08 20:20 
GeneralRe: Logical Drive Pin
SandipG 7-Aug-08 20:23
SandipG 7-Aug-08 20:23 
GeneralRe: Logical Drive Pin
Davitor7-Aug-08 20:49
Davitor7-Aug-08 20:49 
GeneralRe: Logical Drive Pin
SandipG 7-Aug-08 21:00
SandipG 7-Aug-08 21:00 
GeneralRe: Logical Drive Pin
Davitor7-Aug-08 21:09
Davitor7-Aug-08 21:09 
GeneralRe: Logical Drive Pin
SandipG 7-Aug-08 21:27
SandipG 7-Aug-08 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.