flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > Mixing FASM and MS Visual C |
Author |
|
vid 15 Dec 2006, 18:05
Following is somewhat-advanced example of mixing assembly and C. It uses MS Visual C, but it may apply to other C compilers.
Only thing i am not sure about with other compilers is "__stdcall" declaration modifier. Someone could make gcc example of this and post it.
Last edited by vid on 14 Mar 2007, 10:44; edited 1 time in total |
|||||||||||
15 Dec 2006, 18:05 |
|
vid 15 Dec 2006, 22:28
Quote: It's hard to separate printed value in asm from printed values in C I just wanted to show all cases. There could be also simpler example, like just using asm procedure in C, or C procedure in ASM. This shows "everything" Quote: how can you work with 2 languages at the same time? because both languages compile to same thing - x86 machine code. So these languages are just different ways to write down thing. |
|||
15 Dec 2006, 22:28 |
|
Remy Vincent 16 Dec 2006, 21:08
Once I tried something with a strange name "thunk" was the name, IT WAS A CALL between 16bitDLL and 32 bit program, and between 32bitDLL and 16 bit program,...
You can't imagine how stupid I WAS trying some trick that is so rarely used, and now, I still have my 16<==>32 try in mind, HALF-WORKING, and I can hardly look at your trick "messing" two different kind of codes,... It's incredible that 10 years later I am still stuck with this old stuff I tried... ISWEAR I was about to learn quickly your trick just above, and then all I was reading about your stuff was VANISHING step after step, and the "memory" (souvenir in French) of my old "half working" work was disturbing my reading of your recent trick,... I think I need another life, because may be I will be never able to understand clearly your new trick just above,.. It's so hard to be "mentally" stuck with some old trick really hard and looking like your trick just above!!. _________________ Groups lower your IQ |
|||
16 Dec 2006, 21:08 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.