Message board for the users of flat assembler.
> Linux > [AMD64] HOWTO: Mix c++ (GCC) and FASM
So I needed to mix asm and c++ under Linux for 64 bit OS development.
As you may know, in an AMD64 environment GCC use ABI 0.98 specification (see here). This means that parameters are no longer passed thru the stack but registers are used instead.
NOTE: this example is not complete yet. I was not able to refer exported variables (look at commented lines in the code)
; Writed for board.flatassembler.net by Nikso ; CppAndAsm ; ; x86-64 GCC calling convention