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?
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?
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Now that we are on the subject of asm, where can I find a good linux asm tutorial (for asm newbies)
thanks
Thanks!
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
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/