Click here to Skip to main content
16,004,906 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Compiling C++ code Pin
Sebastian Schneider1-Feb-06 22:15
Sebastian Schneider1-Feb-06 22:15 
GeneralRe: Compiling C++ code Pin
Tshrove2-Feb-06 5:40
Tshrove2-Feb-06 5:40 
QuestionSimple copy program.....undesired behavior Pin
tekno_arun1-Feb-06 9:38
tekno_arun1-Feb-06 9:38 
AnswerRe: Simple copy program.....undesired behavior Pin
Graham Bradshaw1-Feb-06 10:31
Graham Bradshaw1-Feb-06 10:31 
QuestionMangled bits of gc class object within native class object Pin
chervu1-Feb-06 8:37
chervu1-Feb-06 8:37 
QuestionXML Tag for Private Ref Class Pin
Ariston Darmayuda1-Feb-06 4:53
Ariston Darmayuda1-Feb-06 4:53 
QuestionRelated to thunderbird extension Pin
baldha rakesh31-Jan-06 18:55
baldha rakesh31-Jan-06 18:55 
Questionhowto include asm code in c++ (gcc/linux) Pin
gecool30-Jan-06 23:04
gecool30-Jan-06 23:04 
hello everyone.

I need to include a few lines of asm code (crc32 routine) in c++ code. I tried asm(" asm-code-here");, or _asm { ... }, or __asm__ { ...} but none had worked.

The asm code is:
asm ("push esi ;
push edi ;
mov eax, dwCrc32 ;
mov ecx, [eax];
mov edi, Crc32Table ;
lea esi, buf ;
mov ebx, length ;
lea edx, [esi + ebx] ;
crc32loop:
xor eax, eax ;
mov bl, byte ptr [esi] ;
mov al, cl ;
inc esi;
xor al, bl ;
shr ecx, 8 ;
mov ebx, [edi + eax * 4];
xor ecx, ebx ;
cmp edx, esi ;
jne crc32loop ;
pop edi ;
pop esi ;
mov eax, dwCrc32 ;
mov [eax], ecx");

P.S. i tried adding a \ character to each end of line, or make a long line out of it, but i couldn't even compile it.

Please help. Smile | :)
AnswerRe: howto include asm code in c++ (gcc/linux) Pin
James Gupta31-Jan-06 1:43
professionalJames Gupta31-Jan-06 1:43 
AnswerRe: howto include asm code in c++ (gcc/linux) Pin
toxcct31-Jan-06 2:23
toxcct31-Jan-06 2:23 
GeneralRe: howto include asm code in c++ (gcc/linux) Pin
gecool31-Jan-06 2:34
gecool31-Jan-06 2:34 
GeneralRe: howto include asm code in c++ (gcc/linux) Pin
toxcct31-Jan-06 2:36
toxcct31-Jan-06 2:36 
GeneralRe: howto include asm code in c++ (gcc/linux) Pin
gecool31-Jan-06 2:42
gecool31-Jan-06 2:42 
GeneralRe: howto include asm code in c++ (gcc/linux) Pin
toxcct31-Jan-06 7:49
toxcct31-Jan-06 7:49 
Questionwindows startup registry Pin
hyyppa30-Jan-06 7:20
hyyppa30-Jan-06 7:20 
AnswerRe: windows startup registry Pin
Saksida Bojan30-Jan-06 10:01
Saksida Bojan30-Jan-06 10:01 
GeneralRe: windows startup registry Pin
hyyppa31-Jan-06 4:09
hyyppa31-Jan-06 4:09 
Questionhelp me Pin
shosho-only30-Jan-06 2:30
shosho-only30-Jan-06 2:30 
AnswerRe: help me Pin
toxcct30-Jan-06 2:38
toxcct30-Jan-06 2:38 
GeneralRe: help me Pin
shosho-only30-Jan-06 2:45
shosho-only30-Jan-06 2:45 
GeneralRe: help me Pin
toxcct30-Jan-06 2:46
toxcct30-Jan-06 2:46 
GeneralRe: help me Pin
shosho-only30-Jan-06 2:49
shosho-only30-Jan-06 2:49 
GeneralRe: help me Pin
toxcct30-Jan-06 2:50
toxcct30-Jan-06 2:50 
GeneralRe: help me Pin
toxcct30-Jan-06 2:58
toxcct30-Jan-06 2:58 
AnswerRe: help me Pin
Cedric Moonen30-Jan-06 3:56
Cedric Moonen30-Jan-06 3:56 

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.