How do you use assembler code in GCC (Unix)? In Win you use:
But that doesn't work in GCC.Code:asm mov ax, 5;
or
asm
{
mov ax, 5;
}
Or do you need some extra assembler module or something?
Printable View
How do you use assembler code in GCC (Unix)? In Win you use:
But that doesn't work in GCC.Code:asm mov ax, 5;
or
asm
{
mov ax, 5;
}
Or do you need some extra assembler module or something?
Now that we are on the subject of asm, where can I find a good linux asm tutorial (for asm newbies)
thanks
Very helpful, thanks
Thanks!
make that... http://linuxassembly.org/
Also look at the on-line book "Advanced Linux Programming", a PDF download. Chapter 9 covers gcc inline assembly particulars. Not in a lot of depth but enuf to get you started. http://www.advancedlinuxprogramming.com/